--- On Tue, 6/9/09, Fabio Zadrozny <fabi...@gmail.com> 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 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).
> 

Thanks for the help--it helped me to create the following snippet for debugging 
django templates:

http://www.djangosnippets.org/snippets/1571/




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