Package pype :: Module pypedebug
[frames] | no frames]

Module pypedebug

source code

Debugging tools for python and pype

Author -- James A. Mazer (mazerj@gmail.com)

Functions
 
trace() source code
 
remotedebug() source code
 
keyboard(banner='Type EOF/^D to continue', builtin=0)
Clone of the matlab keyboard() function.
source code
 
get_exception(show=None)
Get info about where exception came from
source code
 
get_traceback(show=None)
Stack dump to stdout.
source code
 
reporterror(gui=True, dbug=False)
Pretty printer for error messages.
source code
 
ppDict(d)
Pretty print a dictionary
source code
 
debug(set=None) source code
Function Details

keyboard(banner='Type EOF/^D to continue', builtin=0)

source code 

Clone of the matlab keyboard() function.

Drop down into interactive shell for debugging Use it like the matlab keyboard command -- dumps you into interactive shell where you can poke around and look at variables in the current stack frame

The idea and code are stolen from something Fredrick Lundh posted on the web a while back.

get_traceback(show=None)

source code 

Stack dump to stdout.

Collect the current exception information (after catching the exception) as a string so it can be reported to the user or logged. This is an internal function, don't call it directly, use the reporterror() function instead.

Stolen from the Pmw source code.

reporterror(gui=True, dbug=False)

source code 

Pretty printer for error messages.

Pretty print a timestamped error message on the console or popup a dialog window based on the current exception state in the current stack frame. This is really just for debugging.