PyDocs

Nav

Python Runtime Services

set_debug

gc

function
  • set_debug(flags)
Set the garbage collection debugging flags.

  flags
    An integer that can have the following bits turned on:
      DEBUG_STATS - Print statistics during collection.
      DEBUG_COLLECTABLE - Print collectable objects found.
      DEBUG_UNCOLLECTABLE - Print unreachable but uncollectable objects
        found.
      DEBUG_SAVEALL - Save objects to gc.garbage rather than freeing them.
      DEBUG_LEAK - Debug leaking programs (everything but STATS).

Debugging information is written to sys.stderr.
0 Examples
No examples for gc/set_debug.
See Also
No see-alsos for gc/set_debug
0 Notes
No notes for set_debug