Re: [Pydev-users] setting breakpoints from within python

2009-06-17 Thread Steve Howell
--- On Tue, 6/9/09, Fabio Zadrozny wrote: > 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

Re: [Pydev-users] setting breakpoints from within python

2009-06-09 Thread Fabio Zadrozny
> 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 p

[Pydev-users] setting breakpoints from within python

2009-06-04 Thread Steve Howell
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. The first case is to debug django templates--I want to emulate this sni