> Hi, > > We are building ACE editor (Javascript) based mini-IDE for Plone CMS. > > Currently we are doing "remote" debugging by having an auxilirity HTTP > server inside Plone process in another thread and then this server > controls pdb. > > Would it make sense to use PyDev remote debugging modules instead of > our own implementation? Are there any generic "remote debugging" tools > for Python? >
Hi Mikko, I think that it'd make sense using the PyDev debugger in that scenario -- it should be a pretty 'generic' remote debugging tool :). And it should be straightforward to integrate it -- you can take a look at some unit-tests to guide with examples: https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev.debug/pysrc/tests_python -- the test_debugger.py is the main file there). The files https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev.debug/pysrc/pydevd_comm.py has the CMD_* constants showing most of the control you should care about ( all the commands received externally are handled through pydevd.py/PyDB/processNetCommand -- and some of those CMD_* constants should be handled in the client). It should be a matter of calling pydevd.settrace() with the proper parameters in the thread you want to trace (and having a proper client as the UI for the debugger). Cheers, Fabio > -- > Mikko Ohtamaa > http://opensourcehacker.com > http://twitter.com/moo9000 > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > pydev-code mailing list > pydev-code@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pydev-code > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ pydev-code mailing list pydev-code@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-code