--- 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
> 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
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