Module implementing the debug base class which based originally on bdb.
gRecursionLimit |
DebugBase | Class implementing base class of the debugger. |
printerr | Module function used for debugging the debug client. |
setRecursionLimit | Module function to set the recursion limit. |
Class implementing base class of the debugger.
Provides methods for the 'owning' client to call to step etc.
_fnCache |
filesToSkip |
lib |
pathsToSkip |
pollTimerEnabled |
None |
DebugBase | Constructor |
__checkBreakInFrame | Private method to check if the function / method has a line number which is a breakpoint. |
__do_clearBreak | Private method called to clear a temporary breakpoint. |
__do_clearWatch | Private method called to clear a temporary watch expression. |
__eventPollTimer | Private method to set a flag every 0.5 s to check for new messages. |
__extractExceptionName | Private method to extract the exception name given the exception type object. |
__extractSystemExitMessage | Private method to get the SystemExit code and message. |
__extract_stack | Private member to return a list of stack frames. |
__sendCallTrace | Private method to send a call/return trace. |
__skipFrame | Private method to filter out debugger files. |
_set_stopinfo | Protected method to update the frame pointers. |
bootstrap | Public method to bootstrap a thread. |
break_here | Public method reimplemented from bdb.py to fix the filename from the frame. |
fix_frame_filename | Public method used to fixup the filename for a given frame. |
getCurrentFrame | Public method to return the current frame. |
getFrameLocals | Public method to return the locals dictionary of the current frame or a frame below. |
getStack | Public method to get the stack. |
go | Public method to resume the thread. |
move_instruction_pointer | Public methode to move the instruction pointer to another line. |
profile | Public method used to trace some stuff independent of the debugger trace function. |
profileWithRecursion | Public method used to trace some stuff independent of the debugger trace function. |
run | Public method to start a given command under debugger control. |
setRecursionDepth | Public method to determine the current recursion depth. |
set_continue | Public method to stop only on next breakpoint. |
set_next | Public method to stop on the next line in or below the given frame. |
set_quit | Public method to quit. |
set_return | Public method to stop when returning from the given frame. |
set_step | Public method to stop after one line of code. |
set_trace | Public method to start debugging from 'frame'. |
step | Public method to perform a step operation in this thread. |
stepOut | Public method to perform a step out of the current call. |
stop_here | Public method reimplemented to filter out debugger files. |
storeFrameLocals | Public method to store the locals into the frame, so an access to frame.f_locals returns the last data. |
tracePythonLibs | Public method to update the settings to trace into Python libraries. |
trace_dispatch | Public method reimplemented from bdb.py to do some special things. |
user_exception | Public method reimplemented to report an exception to the debug server. |
user_line | Public method reimplemented to handle the program about to execute a particular line. |
None |
Constructor
Private method to check if the function / method has a line number which is a breakpoint.
Private method called to clear a temporary breakpoint.
Private method called to clear a temporary watch expression.
Private method to set a flag every 0.5 s to check for new messages.
Private method to extract the exception name given the exception type object.
Private method to get the SystemExit code and message.
Private member to return a list of stack frames.
Private method to send a call/return trace.
Private method to filter out debugger files.
Tracing is turned off for files that are part of the debugger that are called from the application being debugged.
Protected method to update the frame pointers.
Public method to bootstrap a thread.
It wraps the call to the user function to enable tracing before hand.
Public method reimplemented from bdb.py to fix the filename from the frame.
See fix_frame_filename for more info.
Public method used to fixup the filename for a given frame.
The logic employed here is that if a module was loaded from a .pyc file, then the correct .py to operate with should be in the same path as the .pyc. The reason this logic is needed is that when a .pyc file is generated, the filename embedded and thus what is readable in the code object of the frame object is the fully qualified filepath when the pyc is generated. If files are moved from machine to machine this can break debugging as the .pyc will refer to the .py on the original machine. Another case might be sharing code over a network... This logic deals with that.
Public method to return the current frame.
Public method to return the locals dictionary of the current frame or a frame below.
Public method to get the stack.
Public method to resume the thread.
It resumes the thread stopping only at breakpoints or exceptions.
Public methode to move the instruction pointer to another line.
Public method used to trace some stuff independent of the debugger trace function.
Public method used to trace some stuff independent of the debugger trace function.
Public method to start a given command under debugger control.
Public method to determine the current recursion depth.
Public method to stop only on next breakpoint.
Public method to stop on the next line in or below the given frame.
Public method to quit.
Disables the trace functions and resets all frame pointer.
Public method to stop when returning from the given frame.
Public method to stop after one line of code.
Public method to start debugging from 'frame'.
If frame is not specified, debugging starts from caller's frame. Because of jump optimizations it's not possible to use sys.breakpoint() as last instruction in a function or method.
Public method to perform a step operation in this thread.
Public method to perform a step out of the current call.
Public method reimplemented to filter out debugger files.
Tracing is turned off for files that are part of the debugger that are called from the application being debugged.
Public method to store the locals into the frame, so an access to frame.f_locals returns the last data.
Public method to update the settings to trace into Python libraries.
Public method reimplemented from bdb.py to do some special things.
This specialty is to check the connection to the debug server for new events (i.e. new breakpoints) while we are going through the code.
Public method reimplemented to report an exception to the debug server.
Public method reimplemented to handle the program about to execute a particular line.
Module function used for debugging the debug client.
Module function to set the recursion limit.