def run(self, args): Mcmdfns.run_set_bool(self, args) dbg = self.debugger if hasattr(dbg.intf[-1], "verbose"): dbg.intf[-1].verbose = dbg.settings[self.name] pass return
def run(self, args): Mcmdfns.run_set_bool(self, args) dbg = self.debugger if hasattr(dbg.intf[-1], 'verbose'): dbg.intf[-1].verbose = dbg.settings[self.name] pass return
def run(self, args): Mcmdfns.run_set_bool(self, args) if self.settings['autolist']: if self.list_cmd is None: self.list_cmd = self.proc.commands['list'].run pass self.proc.add_preloop_hook(self.run_list, 0) else: self.proc.remove_preloop_hook(self.run_list) pass return
def run(self, args): Mcmdfns.run_set_bool(self, args) if self.settings["autopython"]: if self.python_cmd is None: self.python_cmd = self.proc.commands["python"].run pass self.proc.add_preloop_hook(self.run_python, -1) else: self.proc.remove_preloop_hook(self.run_python) pass Mcmdfns.run_show_bool(self) return
def run(self, args): Mcmdfns.run_set_bool(self, args) if self.settings['autopython']: if self.python_cmd is None: self.python_cmd = self.proc.commands['python'].run pass self.proc.add_preloop_hook(self.run_python, -1) else: self.proc.remove_preloop_hook(self.run_python) pass Mcmdfns.run_show_bool(self) return
def run(self, args): run_set_bool(self, args) if self.settings["autolist"]: if self.list_cmd is None: self.list_cmd = self.proc.commands["list"].run pass self.proc.add_preloop_hook(self.run_list, 0) else: self.proc.remove_preloop_hook(self.run_list) pass run_show_bool(self, "Show `list` on debugger entry") return
def run(self, args): # Strip off ReStructuredText tags doc = re.sub('[*]', '', self.short_help).lstrip() # Take only the first two tokens i = doc.find(' ') if i > 0: j = doc.find(' ', i + 1) if j > 0: doc = doc[0:j] pass doc = doc.capitalize().split('\n')[0].rstrip('.') Mcmdfns.run_set_bool(self, args) Mcmdfns.run_show_bool(self, doc) return
def run(self, args): # Strip off ReStructuredText tags doc = re.sub("[*]", "", self.short_help).lstrip() # # Take only the first two tokens # i = doc.find(' ') # if i > 0: # j = doc.find(' ', i+1) # if j > 0: doc = doc[0:j] # pass doc = doc.capitalize().split("\n")[0].rstrip(".") Mcmdfns.run_set_bool(self, args) Mcmdfns.run_show_bool(self, doc) return
def run(self, args): # Strip off ReStructuredText tags doc = re.sub('[*]', '', self.__doc__).lstrip() # # Take only the first two tokens # i = doc.find(' ') # if i > 0: # j = doc.find(' ', i+1) # if j > 0: doc = doc[0:j] # pass doc = doc.capitalize().split('\n')[0].rstrip('.') Mcmdfns.run_set_bool(self, args) Mcmdfns.run_show_bool(self, doc) return
def run(self, args): Mcmdfns.run_set_bool(self, args) if self.settings['autolist']: if self.list_cmd is None: self.list_cmd = self.proc.commands['list'].run pass self.proc.add_preloop_hook(self.run_list, 0) else: self.proc.remove_preloop_hook(self.run_list) pass Mcmdfns.run_show_bool(self, 'Show `list` on debugger entry') return
def run(self, args): run_set_bool(self, args) if self.settings["autostack"]: if self.info_stack_cmd is None: info_cmd = self.proc.commands["info"] self.info_stack_cmd = info_cmd.cmds.lookup("stack").run pass self.proc.add_preloop_hook(self.run_infostack, 0) else: self.proc.remove_preloop_hook(self.run_infostack) pass run_show_bool(self, "Run `info stack` on debugger entry") return
def run(self, args): Mcmdfns.run_set_bool(self, args) if self.debugger.settings[self.name]: # Put a stack frame in the list of frames so we have # something to inspect. frame = inspect.currentframe() # Also give access to the top-level debugger self.proc.stack, self.proc.curindex = Mcmdproc.get_stack(frame, None, self.proc) self.proc.curframe = self.proc.stack[self.proc.curindex][0] # Remove ignored debugger functions. self.save_ignore_filter = self.core.ignore_filter self.core.ignore_filter = None else: self.core.ignore_filter = self.save_ignore_filter pass return
def run(self, args): Mcmdfns.run_set_bool(self, args) if self.debugger.settings[self.name]: # Put a stack frame in the list of frames so we have # something to inspect. frame = inspect.currentframe() # Also give access to the top-level debugger self.proc.stack, self.proc.curindex = Mcmdproc.get_stack( frame, None, self.proc) self.proc.curframe = self.proc.stack[self.proc.curindex][0] # Remove ignored debugger functions. self.save_ignore_filter = self.core.ignore_filter self.core.ignore_filter = None else: self.core.ignore_filter = self.save_ignore_filter pass return