bdb.Breakpoint.bpformat()
  • References/Python/Python/Debugging & Profiling

bpformat() Return a string with all the information about the breakpoint, nicely formatted:

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

disable() Stop collecting profiling data.

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

tracemalloc.get_tracemalloc_memory() Get the memory usage in bytes of the tracemalloc module used to store traces

2025-01-10 15:47:30
timeit.Timer.print_exc()
  • References/Python/Python/Debugging & Profiling

print_exc(file=None) Helper to print a traceback from the timed code. Typical use:

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

tracemalloc.get_traced_memory() Get the current size and peak size of memory blocks traced by the tracemalloc module

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

run(statement, globals=None, locals=None) runeval(expression, globals=None, locals=None) runcall(function

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

print_callers(*restrictions) This method for the Stats class prints a list of all functions that called each function

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

get_all_breaks() Return all breakpoints that are set.

2025-01-10 15:47:30
profile.Profile.create_stats()
  • References/Python/Python/Debugging & Profiling

create_stats() Stop collecting profiling data and record the results internally as the current profile.

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

set_step() Stop after one line of code.

2025-01-10 15:47:30