breakpoints some hit some not hit in debug Django project
已回答
Hi, I'm using PyCharm Professional 2017.3.3 and macOS 10.12.6. And Python interpreter for my Django project is a docker-compose interpreter.
I set a few breakpoints in my Django project, they are all in views. Some breakpoints got hit very good, however some just missed.
Env variable PYCHARM_DEBUG is alse set to see the debug details. For the missed breakpoints, the thread created and killed in a very short time, see screenshots.
I'm confused, why does not PyCharm catch the breakpoints? Thanks.
missed breakpoint:
good breakpoint. I run it right after the missed breakpoint, you can see the massive output and I'm ok to debug.
请先登录再写评论。
Hi! Could you please provide a code sample for reproducing the bug? For example, a simplified version of your project?
Hi Elizabeth, do you know any possible reasons for breakpoints not hit in your experiences? My project is too big, hard to simply it.
good breakpoint:
bad breakpoint:
dd
vvoody Unfotunately it's difficult to investigate problem this way. Sometimes debugger behavior depends on the way the new process was created (for example: https://youtrack.jetbrains.com/issue/PY-14690) or on some Django-specific functions (https://youtrack.jetbrains.com/issue/PY-16650). Could you please try to simplify your big project?