[Pydev-code] API call for the pydev debug server? Robustness
Brought to you by:
fabioz
From: Thomas J. <th...@sk...> - 2009-07-14 14:09:41
|
Hi, We're writing a plugin which provides some functionality for starting, running and debugging Python code running in an external application called 'Studio'. Among other things, our plugin provides a button 'start debug trace of Studio' which runs pydevd.settrace() in Studio, to connect back to the (running!) pydev debug server. Currently, however, before pressing 'start debug trace of Studio' the user must have pressed the button 'pydev:start pydev debug server' exactly once, otherwise it will not work, nor will retrying start pydev debug server + start debug trace. (Nor does start+stop+start of pydev debug server). Once it has gone wrong in this way, there appears to be no way to recover except restarting Eclipse. Therefore we would like to robustify this: when pressing our 'start debug trace of Studio' we would like our plugin also to activate pydev server if it has not already been done, and generally help or at least inform/warn when things are are about to go wrong. Are there any api calls for starting the pydev debug server, or probing its state? Any help and hints with this would be greatly appreciated! We are currently using pydev+extensions 1.4.4 , with eclipse 3.4.1. Thanks in advance! -- Thomas Johnsson, Jeppesen Systems, Göteborg, Sweden |