debugging python scripts
Posted: June 12th, 2011, 12:52 pm
Hello, I am a beginner with Python and I don't know how to debug in Golly. I try to use pdb and pdb.set_trace() but it seems not to work.
Forums for Conway's Game of Life
https://conwaylife.com/forums/
Code: Select all
raise RuntimeError("foo")
Code: Select all
try:
raise RuntimeError("foo")
except:
import sys
import traceback
exception, msg, tb = sys.exc_info()
golly.note('\n'.join(traceback.format_exception(exception, msg, tb)))