bdb.Breakpoint

class bdb.Breakpoint(self, file, line, temporary=0, cond=None, funcname=None) This class implements temporary breakpoints, ignore counts, disabling and (re-)enabling, and conditionals. Breakpoints are indexed by number through a list called bpbynumber and by (file, line) pairs through bplist. The former points to a single instance of class Breakpoint. The latter points to a list of such instances since there may be more than one breakpoint per line. When creating a breakpoint, its associated

bdb.Bdb.set_until()

set_until(frame) Stop when the line with the line no greater than the current one is reached or when returning from current frame.

bdb.Bdb.user_exception()

user_exception(frame, exc_info) This method is called from dispatch_exception() when stop_here() yields True.

bdb.Bdb.set_trace()

set_trace([frame]) Start debugging from frame. If frame is not specified, debugging starts from caller’s frame.

bdb.Bdb.user_call()

user_call(frame, argument_list) This method is called from dispatch_call() when there is the possibility that a break might be necessary anywhere inside the called function.

bdb.Bdb.trace_dispatch()

trace_dispatch(frame, event, arg) This function is installed as the trace function of debugged frames. Its return value is the new trace function (in most cases, that is, itself). The default implementation decides how to dispatch a frame, depending on the type of event (passed as a string) that is about to be executed. 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 entered. "return": A

bdb.Bdb.stop_here()

stop_here(frame) This method checks if the frame is somewhere below botframe in the call stack. botframe is the frame in which debugging started.

bdb.Bdb.set_continue()

set_continue() Stop only at breakpoints or when finished. If there are no breakpoints, set the system trace function to None.

bdb.Bdb.set_step()

set_step() Stop after one line of code.

bdb.Bdb.set_break()

set_break(filename, lineno, temporary=0, cond, funcname) Set a new breakpoint. If the lineno line doesn’t exist for the filename passed as argument, return an error message. The filename should be in canonical form, as described in the canonic() method.