On Sep 21, 8:00 am, Kevin Bache <kevin.ba...@gmail.com> wrote:
> Hi Everyone,
> I'm a bit of a Django noob so please forgive me if my hope here is
> swimmingly optimistic:
>
> I'd like to be able to set breakpoints in my django project which would be
> triggered by my browser's requests to the integrated Django development
> server.  Is this possible?  I'm using NetBeans 6.7 with Python EA as my
> IDE.  I have manage.py set as the project's main module and  "runserver
> --noreload" for arguments.  I set sample breakpoints in my urls.py module
> and run the server by selecting Debug >> Debug Main Project in NetBeans, but
> when I surf around the website through Firefox, the requests fly right past
> my breakpoints.  Am I missing something or is this just some web dev pipe
> dream?  If what I'm trying for is impossible, what are some realistic
> debugger usage scenarios with Django?  My development will go much faster if
> I can pause and look around every now and again without having to splice my
> code with print statements.
>
> Thanks in advance for the help.
>
> Best,
> Kevin

I don't know about NetBeans, but I have always found the built-in
Python debugger pdb to be invaluable. Just put the following wherever
you need a breakpoint;
import pdb; pdb.set_trace()
and the debugger will show in the console.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to