with this. • pdb - very useful and powerful, requires you drop a set_trace(). • django-extension/werkzeug - handy for web applications. Tuesday, 15 October, 13
communicate with a running process: $ cat test.py #!/usr/bin/python from time import sleep from datetime import datetime import signal def run_debug(signal, frame): import pdb; pdb.set_trace() if __name__ == '__main__': signal.signal(signal.SIGUSR1, run_debug) while True: print datetime.now() sleep(1) Tuesday, 15 October, 13