PyDocs

Nav

Debugging and profiling

Bdb.trace_dispatch

bdb

method of Bdb (source)
  • Bdb.trace_dispatch(frame, event, arg)
Dispatch a trace function for debugged frames based on the event.

This function is installed as the trace function for debugged
frames. Its return value is the new trace function, which is
usually itself. The default implementation decides how to
dispatch a frame, depending on the type of event (passed in as a
string) that is about to be executed.

The event can be one of the following:
    line: A new line of code is going to be executed.
    call: A function is about to be called or another code block
          is entered.
    return: A function or other code block is about to return.
    exception: An exception has occurred.

For all the events, specialized functions (see the dispatch_*()
methods) are called.

The arg parameter depends on the previous event.
0 Examples
No examples for bdb/Bdb.trace_dispatch.
See Also
No see-alsos for bdb/Bdb.trace_dispatch
0 Notes
No notes for Bdb.trace_dispatch