On Sep 21, 6: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.
It may be the way you are running the program from NB. There are 2 buttons, Run Main Project and Debug Main Project. Make sure you are using the second. It should automatically break on the very first line of code (at least it did in 6.5), where you need to hit continue to actually run the project. Personally I found that particular feature an annoyance and a blessing. An annoyance because you always have to click 2 buttons to really start the debug process, a blessing in that when I first started with both Django and Python were new to me and it helped me get my head around how the entire process got off the ground. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---