faulthandler.enable()
  • References/Python/Python/Debugging & Profiling

faulthandler.enable(file=sys.stderr, all_threads=True) Enable the fault handler: install handlers for the SIGSEGV

2025-01-10 15:47:30
bdb.Bdb.get_breaks()
  • References/Python/Python/Debugging & Profiling

get_breaks(filename, lineno) Return all breakpoints for lineno in filename, or an empty list if none are set

2025-01-10 15:47:30
tracemalloc.Filter.lineno
  • References/Python/Python/Debugging & Profiling

lineno Line number (int) of the filter. If lineno is None, the filter matches any line number

2025-01-10 15:47:30
tracemalloc.Frame.filename
  • References/Python/Python/Debugging & Profiling

filename Filename (str).

2025-01-10 15:47:30
bdb.effective()
  • References/Python/Python/Debugging & Profiling

bdb.effective(file, line, frame) Determine if there is an effective (active) breakpoint at this line of code. Return a tuple

2025-01-10 15:47:30
tracemalloc.Snapshot.traceback_limit
  • References/Python/Python/Debugging & Profiling

traceback_limit Maximum number of frames stored in the traceback of traces: result of the get_traceback_limit()

2025-01-10 15:47:30
bdb.Bdb.get_stack()
  • References/Python/Python/Debugging & Profiling

get_stack(f, t) Get a list of records for a frame and all higher (calling) and lower frames, and the size of the higher part

2025-01-10 15:47:30
pstats.Stats.strip_dirs()
  • References/Python/Python/Debugging & Profiling

strip_dirs() This method for the Stats class removes all leading path information from file names. It is very useful

2025-01-10 15:47:30
pdb.Pdb.set_trace()
  • References/Python/Python/Debugging & Profiling

set_trace() See the documentation for the functions explained above.

2025-01-10 15:47:30
bdb.Breakpoint.disable()
  • References/Python/Python/Debugging & Profiling

disable() Mark the breakpoint as disabled.

2025-01-10 15:47:30