> I am wondering if there is a way to set a pydev breakpoint programatically 
> within python code.  Obviously, I generally set breakpoints through pydev 
> itself, but there are two cases where I'd like to do it programatically.

Yes, you can do that using:

import pydevd
pydevd.connected = True
pydevd.settrace()

Note that the pydevd.connected = True must be called only once (if you
don't do it, it'll think it has to connect to the remote debugger...
which is not what you want, unless you're actually using the remote
debugger). Note that you don't have to add pydevd to your pythonpath
(in a debug session it'll be there already without any special
setting).

Cheers,

Fabio

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to