Internal Bdb subclass to allow debugging of algorithms
REALLY UGLY CODE: Written before I understood the Debugger.
Probably should use sys.settrace() directly with the different
modes of debugging encoded in appropriate methods
Methods
|
|
|
|
__init__
|
__init__ ( self, dbgGUI )
Internal dbgGUI is the GUI for the debugger
|
|
currentLine
|
currentLine ( self, frame )
Internal returns the current line number
|
|
dispatch_call
|
dispatch_call (
self,
frame,
arg,
)
|
|
dispatch_line
|
dispatch_line ( self, frame )
Internal Only dispatch if we are in the algorithm file
|
|
do_next
|
do_next ( self )
|
|
do_quit
|
do_quit ( self )
|
|
forget
|
forget ( self )
|
|
interaction
|
interaction (
self,
frame,
traceback,
)
Internal This function does all the interaction with the user
depending on self.GUI.mode
|
|
reset
|
reset ( self )
Internal Put debugger into initial state, calls forget()
|
|
setup
|
setup (
self,
f,
t,
)
|
|
trace_nofeedback_dispatch
|
trace_nofeedback_dispatch (
self,
frame,
event,
arg,
)
|
|
user_call
|
user_call (
self,
frame,
argument_list,
)
Internal This function is called when we stop or break
at this line
|
|
user_exception
|
user_exception (
self,
frame,
(,
)
Internal This function is called if an exception occurs,
but only if we are to stop at or just below this level
|
|
user_line
|
user_line ( self, frame )
Internal This function is called when we stop or break at this line
|
|
user_return
|
user_return (
self,
frame,
return_value,
)
Internal This function is called when a return trap is set here
|
|