Module implementing the debug base class.
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 simple wrapper methods around bdb for the 'owning' client to call to step etc.
None |
None |
DebugBase | Constructor |
__do_clear | Private method called to clear a temporary breakpoint. |
__do_clearWatch | Private method called to clear a temporary watch expression. |
__effective | Private method to determine, if a watch expression is effective. |
__extractExceptionName | Private method to extract the exception name given the exception type object. |
__extract_stack | Private member to return a list of stack frames. |
__skip_it | Private method to filter out debugger files. |
break_anywhere | Reimplemented from bdb.py to do some special things. |
break_here | Reimplemented from bdb.py to fix the filename from the frame. |
clear_watch | Public method to clear a watch expression. |
dispatch_exception | Reimplemented from bdb.py to always call user_exception. |
dispatch_line | Reimplemented from bdb.py to do some special things. |
dispatch_return | Reimplemented from bdb.py to handle passive mode cleanly. |
fix_frame_filename | Public method used to fixup the filename for a given frame. |
getCurrentFrame | Public method to return the current frame. |
getCurrentFrameLocals | Public method to return the locals dictionary of the current frame. |
getEvent | Public method to return the last debugger event. |
getStack | Public method to get the stack. |
get_break | Reimplemented from bdb.py to get the first breakpoint of a particular line. |
get_watch | Public method to get a watch expression. |
go | Public method to resume the thread. |
isBroken | Public method to return the broken state of the debugger. |
profile | Public method used to trace some stuff independant of the debugger trace function. |
setRecursionDepth | Public method to determine the current recursion depth. |
set_continue | Reimplemented from bdb.py to always get informed of exceptions. |
set_quit | Public method to quit. |
set_trace | Overridden method of bdb.py to do some special setup. |
set_watch | Public method to set a watch expression. |
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 | Reimplemented to filter out debugger files. |
trace_dispatch | Reimplemented from bdb.py to do some special things. |
user_exception | Reimplemented to report an exception to the debug server. |
user_line | Reimplemented to handle the program about to execute a particular line. |
user_return | Reimplemented to report program termination to the debug server. |
None |
Constructor
Private method called to clear a temporary breakpoint.
Private method called to clear a temporary watch expression.
Private method to determine, if a watch expression is effective.
Private method to extract the exception name given the exception type object.
Private member to return a list of stack frames.
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.
Reimplemented from bdb.py to do some special things.
These speciality is to fix the filename from the frame (see fix_frame_filename for more info).
Reimplemented from bdb.py to fix the filename from the frame.
See fix_frame_filename for more info.
Public method to clear a watch expression.
Reimplemented from bdb.py to always call user_exception.
Reimplemented from bdb.py to do some special things.
This speciality is to check the connection to the debug server for new events (i.e. new breakpoints) while we are going through the code.
Reimplemented from bdb.py to handle passive mode cleanly.
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.
Public method to return the last debugger event.
Public method to get the stack.
Reimplemented from bdb.py to get the first breakpoint of a particular line.
Because eric4 supports only one breakpoint per line, this overwritten method will return this one and only breakpoint.
Public method to get a watch expression.
Public method to resume the thread.
It resumes the thread stopping only at breakpoints or exceptions.
Public method to return the broken state of the debugger.
Public method used to trace some stuff independant of the debugger trace function.
Public method to determine the current recursion depth.
Reimplemented from bdb.py to always get informed of exceptions.
Public method to quit.
It wraps call to bdb to clear the current frame properly.
Overridden method of bdb.py to do some special setup.
Public method to set a watch expression.
Public method to perform a step operation in this thread.
Public method to perform a step out of the current call.
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.
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.
Reimplemented to report an exception to the debug server.
Reimplemented to handle the program about to execute a particular line.
Reimplemented to report program termination to the debug server.
Module function used for debugging the debug client.
Module function to set the recursion limit.