Django Debugger with Eclipse and PyDev

I just managed to debug my django "sort of" site running in Eclipse. All my breakpoints are caught just fine, but I have to restart the server every time I make a code change. I think this is because I use the --noreload argument when starting the server.

Is there a way to set up Eclipse debugging so that I can change the code and continue execution when my changes are immediately reflected on the django site?

Cheers, dave

Trindaz in Fedang #django

+2
source share
2 answers

This is a bit late, but in case someone else is looking for a solution to the same problem:

This video was very useful when I tried to configure Django Eclipse debugging using autoreload ie without using the --noreload switch. This pretty much goes through steps with a few useful pointers. I tweaked this video twice.

The manage.py replacement code can be obtained from http://djangosnippets.org/snippets/1561/

I found these links through a poster blog post that seems to be missing at the moment, so direct links

EDIT: For Django 1.3, an autoreload mode patch may be required from within the IDE. For more information, see PyCharm manage.py errorserver .

+2
source

http://bear330.wordpress.com/2007/10/30/how-to-debug-django-web-application-with-autoreload/

The author explains how to do this here, basically you need to embed the remote debugger in the manage.py file.

Hope this helps

0
source

Source: https://habr.com/ru/post/1346986/


All Articles