Django debugging

Hi,

I'm trying to djnago debuggin, I set breakpoint but it only works when I check 'Test server' or 'No reload' in configurations - is this normal?

5 comments

Hello...  while I'm not sure it's "normal", I am sure that I'm experiencing the same thing!  So, I would say that this is either a bug - or a feature that should be documented a bit more!  :-)

0

Debug works only in --noreload mode. It is needed for django server process not being restarted loosing connection with debugger.

In next EAP(which is expected soon) PyCharm adds --noreload option in debug mode automaticly.

0

Also I noticed, that there is 2 processes (of the python) are started when I start Django without --noreload option. And when I press a "stop" only one is killing and second one is alive, which causes the " Error: (48, 'Address already in use') " exception. Does it should be like this? With --noreload only one processe started and killed on stop event.

Does it all mean, than in the next revision we won't have auto-reload and debug at the same time?

I am on MacBook with 10.6.4, and I use Python 2.5 for my django project.

0

Hi Aleksandr,

And when I press a "stop" only one is killing and second one is alive, which causes the " Error: (48, 'Address already in use') " exception. D

Indeed there is an issue with terminate both of the processes on Mac, which is not fixed yet.

Does it all mean, than in the next revision we won't have auto-reload and debug at the same time?

Currently it is impossible to debug in auto-reload mode as django server process is being restarted loosing connection with debuger with no chance to restore it.

0

Yeah, such feature would be the killer one ... :-(

0

Please sign in to leave a comment.