#@+leo
#@+node:0::@file plugins/mod_enable_gc.py
#@+body
"""enable debugging for garbage collector"""

from leoPlugins import *
from leoGlobals import *


#@+others
#@+node:1::onStart
#@+body
def onStart (tag,keywords):

	try:
		import gc
		gc.set_debug(gc.DEBUG_LEAK)
	except: pass
#@-body
#@-node:1::onStart
#@-others


if 1: # Register the handlers...
	registerHandler("start2", onStart)
	
	import mod_enable_gc
	es("...gc debugging v1.1: " + plugin_date(mod_enable_gc))
#@-body
#@-node:0::@file plugins/mod_enable_gc.py
#@-leo
