Community edition Django debug breakpoint not hit

I have the latest version of PyCharm community edition. I am using the Heroku python project from https://github.com/heroku/python-getting-started.

My run configuration is set to python-getting-started\manage.py, with a parameter of runserver.

I've put a breakpoint at hello/views.py, on line 9. When I launch it in debug the server works fine, but my breakpoint is never hit.

 

2 comments
Comment actions Permalink

Hi Oli! Are you sure that this line of code was executed? Could you please set environment variable PYCHARM_DEBUG=True and provide console output?

0
Comment actions Permalink

Pretty sure, the output went to the browser.

I did some further googling after posting this, came across PYCHARM_DEBUG=True, which caused it to start working.

However, now if I remove that it still works - so I can no longer reproduce it :(

0

Please sign in to leave a comment.