Pycharm Pro 2021.1 does not stopping on breakpoint ( Odoo Project )
I used to work with pycharm CE 2020 for my Odoo project but the debugging isn't work. So I change to Pycharm Pro 2021.1 and it still happened? Am i forgot some setting or something in pycharm? Please help me, without debug, I waste a lot of time to print and check error.
Please sign in to leave a comment.
Please add the PYCHARM_DEBUG=True environment variable to your run configuration (Run | Edit configurations...), reproduce the issue and provide the whole console output.
I am having the same problem.
Here is my output;
The breakpoints should be triggering right after "Learning Rate" print line is displayed but the breakpoints are being skipped...
Bmikolaj Your issues seems to be different:
Either way, debugging Odoo is a known issue https://youtrack.jetbrains.com/issue/PY-43474, unfortunately it doesn't work very well.
I know I have that error but my breakpoints before that error don't trigger at all. No breakpoints do when I run debugger...
I don't have an Odoo project, though, so yes it's not related directly but it is still an issue with the debugger in this version.
Bmikolaj
I see, then I'd suggest to make sure that you have "Attach to subprocess automatically" option enabled in [Preferences | Build, Execution, Deployment | Python Debugger], and also to try enabling/disabling "Gevent compatible" option there.
If nothing helps, I suggest submitting an issue to https://youtrack.jetbrains.com/issues/py with a code/project sample and steps to reproduce the issue.