Hi 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-code

Reply via email to