|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
API call for the pydev debug server? RobustnessHi,
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 ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ pydev-code mailing list pydev-code@... https://lists.sourceforge.net/lists/listinfo/pydev-code |
|
|
Re: API call for the pydev debug server? RobustnessHi Thomas,
(answers below) > 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. Right now, there's no standard API for it to work (the com.pyhon.pydev.debug plugin doesn't export any symbols). I'm going to add a way to get its state, start and stop it... Do you think you need something else from it? Cheers, Fabio ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ pydev-code mailing list pydev-code@... https://lists.sourceforge.net/lists/listinfo/pydev-code |
|
|
Re: API call for the pydev debug server? RobustnessHi Thomas,
> 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? Ok, I've created a public API for that in the "com.python.pydev.debug" plugin. You can get it at the next nightly build (svn: 2851) -- it'll be available in a final release for 1.4.8. The API is: com.python.pydev.debug.remote.client_api.PydevRemoteDebuggerServer.startServer() com.python.pydev.debug.remote.client_api.PydevRemoteDebuggerServer.stopServer() com.python.pydev.debug.remote.client_api.PydevRemoteDebuggerServer.isRunning() (those are static methods) Cheers, Fabio ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ pydev-code mailing list pydev-code@... https://lists.sourceforge.net/lists/listinfo/pydev-code |
| Free embeddable forum powered by Nabble | Forum Help |