Can't debug Django app but run success

Hi, I have problem that can't debug Django project but cat run success.

In debug mode, I set breakpoints, the Django project can run and jump over the breakpoints not pause at breakpoints.

I can debug a single python file successful, but just Django project can't debug . And there with any exception

 

 

This is a part of my Django code, as you can see, I print  * is working, but breakpoint I set is not working that jump over the breakpoints

print('*' * 100)

 

 

This is my Django Debug Configurations, set PYCHARM_DEBUG= True

 

 

While I debug a signal python file, the debug is working normal

 

My Pycharm version:

 Can you help me to solve this problem? thank you!

2 comments
Comment actions Permalink

Hi, 

Please check if the issue is reproduced in PyCharm 2022.1 (https://www.jetbrains.com/pycharm/download/)

If it does, please check if the issue is reproduced in another simple Django project. You can use my test project for this -- https://github.com/aresler/django_dbg_test

0
Comment actions Permalink

I have the same problem

I found that as long as the package name is "django", this problem occurs

0

Please sign in to leave a comment.