Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug django, it spawns a new process to which I'm not attached?

Tags:

python

django

I'm trying to debug django using PyCharm, and notice that it spawns a new process to which PyCharm is not attached. My breakpoints aren't hit in this new process.

How do I debug it then? (See autoreload.restart_with_reloader())

like image 879
ripper234 Avatar asked Nov 28 '25 22:11

ripper234


1 Answers

If you are debugging - it is a good idea to have "--noreload" option for the dev-server.

AFAIK PyCharm has a checkbox "No reload" in the run options for the project.

like image 151
Jerzyk Avatar answered Dec 01 '25 10:12

Jerzyk