Skip to main content

set_trace

Set break-point at current location, or a specified frame.

def set_trace(
frame: frame object = None
) - > None

Set break-point at current location, or a specified frame.

Parameters

NameTypeDescription
frameframe object = NoneThe execution frame where the debugger should start; if omitted, the debugger starts at the caller's frame.

Returns

TypeDescription
NoneThis function typically returns None after the debugger session is initialized and control is handed over to the interactive prompt.