[Pydev-code] PyDev Debugger: Monkeypatch thread.start_new_thread to debug threads?
Brought to you by:
fabioz
From: Leo S. M. <leo...@gm...> - 2010-02-21 17:45:28
|
Hi all, When running the Django server under the PyDev debugger there is a problem: Under Jython the server spawns a worker thread which do all the actual work while the main thread just keeps monitoring the filesystem for changes. But, AFAICS, the pydev debugger only monitors the main thread. I'm playing with monkey-patching thread.start_new_thread to set sys.settrace to the internal settrace function used with PyDev when executing the function in the new thread. Any obvious reason I'm missing why that may be a bad idea? -- Leo Soto M. http://blog.leosoto.com |