A specialized version of the python debugger that redirects stdout to a given stream when interacting with the user. Stdout is not redirected when traced code is executed.
There are no implemented interfaces.
doc_header
(type:
str
)
'Documented commands (type help <topic>):'
doc_leader
(type:
str
)
''
identchars
(type:
str
)
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'
intro
(type: NoneType
)
None
lastcmd
(type:
str
)
''
misc_header
(type:
str
)
'Miscellaneous help topics:'
nohelp
(type:
str
)
'*** No help on %s'
prompt
(type:
str
)
'(Cmd) '
ruler
(type:
str
)
'='
undoc_header
(type:
str
)
'Undocumented commands:'
use_rawinput
(type:
int
)
1
break_anywhere(frame)
break_here(frame)
canonic(filename)
checkline(filename, lineno)
Check whether specified line seems to be executable.
Return `lineno` if it is, 0 if not (e.g. a docstring, comment, blank line or EOF). Warning: testing is not comprehensive.
clear_all_breaks()
clear_all_file_breaks(filename)
clear_bpbynumber(arg)
clear_break(filename, lineno)
cmdloop(intro=None)
Repeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument.
columnize(list, displaywidth=80)
Display a list of strings as a compact set of columns.
Each column is only as wide as necessary. Columns are separated by two spaces (one was not legible enough).
complete(text, state)
Return the next possible completion for text
.
If a command has not been entered, then complete against command list.
Otherwise try to call complete_
complete_help(*args)
completedefault(*ignored)
Method called to complete an input line when no command-specific complete_*() method is available.
By default, it returns an empty list.
completenames(text, *ignored)
default(line)
defaultFile()
Produce a reasonable default.
dispatch_call(frame, arg)
dispatch_exception(frame, arg)
dispatch_line(frame)
dispatch_return(frame, arg)
do_EOF(arg)
do_a(arg)
do_alias(arg)
do_args(arg)
do_b(arg, temporary=0)
do_break(arg, temporary=0)
do_bt(arg)
do_c(arg)
do_cl(arg)
Three possibilities, tried in this order: clear -> clear all breaks, ask for confirmation clear file:lineno -> clear all breaks at file:lineno clear bpno bpno ... -> clear breakpoints by number
do_clear(arg)
Three possibilities, tried in this order: clear -> clear all breaks, ask for confirmation clear file:lineno -> clear all breaks at file:lineno clear bpno bpno ... -> clear breakpoints by number
do_condition(arg)
do_cont(arg)
do_continue(arg)
do_d(arg)
do_debug(arg)
do_disable(arg)
do_down(arg)
do_enable(arg)
do_exit(arg)
do_h(arg)
do_help(arg)
do_ignore(arg)
arg is bp number followed by ignore count.
do_j(arg)
do_jump(arg)
do_l(arg)
do_list(arg)
do_n(arg)
do_next(arg)
do_p(arg)
do_pp(arg)
do_q(arg)
do_quit(arg)
do_r(arg)
do_return(arg)
do_retval(arg)
do_rv(arg)
do_s(arg)
do_step(arg)
do_tbreak(arg)
do_u(arg)
do_unalias(arg)
do_up(arg)
do_w(arg)
do_whatis(arg)
do_where(arg)
emptyline()
Called when an empty line is entered in response to the prompt.
If this method is not overridden, it repeats the last nonempty command entered.
execRcLines()
forget()
format_stack_entry(frame_lineno, lprefix=': ')
get_all_breaks()
get_break(filename, lineno)
get_breaks(filename, lineno)
get_file_breaks(filename)
get_names()
get_stack(f, t)
help_EOF()
help_a()
help_alias()
help_args()
help_b()
help_break()
help_bt()
help_c()
help_cl()
help_clear()
help_condition()
help_cont()
help_continue()
help_d()
help_debug()
help_disable()
help_down()
help_enable()
help_exec()
help_exit()
help_h()
help_help()
help_ignore()
help_j()
help_jump()
help_l()
help_list()
help_n()
help_next()
help_p()
help_pdb()
help_pp()
help_q()
help_quit()
help_r()
help_return()
help_s()
help_step()
help_tbreak()
help_u()
help_unalias()
help_up()
help_w()
help_whatis()
help_where()
interaction(frame, traceback)
lineinfo(identifier)
lookupmodule(filename)
lookupmodule() translates (possibly incomplete) file or module name into an absolute file name.
onecmd(line)
Interpret the argument as though it had been typed in response to the prompt.
This may be overridden, but should not normally need to be; see the precmd() and postcmd() methods for useful execution hooks. The return value is a flag indicating whether interpretation of commands by the interpreter should stop.
parseline(line)
Parse the line into a command name and a string containing
the arguments. Returns a tuple containing (command, args, line).
command
and args
may be None if the line couldn't be parsed.
postcmd(stop, line)
Hook method executed just after a command dispatch is finished.
postloop()
Hook method executed once when the cmdloop() method is about to return.
precmd(line)
Handle alias expansion and ;;
separator.
preloop()
Hook method executed once when the cmdloop() method is called.
print_stack_entry(frame_lineno, prompt_prefix='\n-> ')
print_stack_trace()
print_topics(header, cmds, cmdlen, maxcol)
reset()
run(cmd, globals=None, locals=None)
runcall(func, *args, **kwds)
runctx(cmd, globals, locals)
runeval(expr, globals=None, locals=None)
set_break(filename, lineno, temporary=0, cond=None, funcname=None)
set_continue()
set_next(frame)
Stop on the next line in or below the given frame.
set_quit()
set_return(frame)
Stop when returning from the given frame.
set_step()
Stop after one line of code.
set_trace()
setup(f, t)
stop_here(frame)
trace_dispatch(*args)
user_call(frame, argument_list)
This method is called when there is the remote possibility that we ever need to stop in this function.
user_exception(frame, (exc_type, exc_value, exc_traceback))
This function is called if an exception occurs, but only if we are to stop at or just below this level.
user_line(frame)
This function is called when we stop or break at this line.
user_return(frame, return_value)
This function is called when a return trap is set here.
There are no known subclasses.