-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging under python 3.11 will skip the breakpoint #1284
Comments
I have the same issue, btw what's the font you're using? |
@ahmdgawad
|
See also ⬇️ where @AdamYoblick has a failing test which might be related. |
Hi all, I'm planning in looking into this, but I have some other tasks with deadlines that I have to get to first. This won't get missed, I promise 😄 |
I can repro this bug, and I also see this warning:
|
I determined that setting |
The frozen modules warning is due to #1251 and should be unrelated. Could you clarify which version of debugpy this is? |
Version 1.8.0 |
More info for you: if single step through op's code example, it goes until the line: If I remove references to brainflow and instead replace them with |
I've isolated it to import pkg_resources
print('hello world') Set a breakpoint on line 2, start the debugger, and it fails to pause on line 2.
|
I have the same issue under Python 3.11, but it's worse in my situation it won't even pause at the first breakpoint. |
Hi, folks! I'm running into the same thing, but I haven't pinpointed the contributing factors or catalysts in my environment. Do we have a sense if the fix will be within |
Could you share the logs ( |
@int19h - This time I put a breakpoint on a function name that I knew was as early in my third party entrypoint code (huey_consumer.py) as possible and added the Here are the log files - let me know if I missed something: |
Thank you! There's no "smoking gun" in the log, but one thing that I've noticed is that a bunch of threads are getting spawned. Are those breakpoints expected to be hit on other threads? If so, are the threads started using stdlib |
I'm not 100% sure, but it does look like However, I'll also mention that I did have one breakpoint inside of an UPDATE: After successfully hitting a breakpoint in the When I got to the place where So, for some additional context for this situation: This debugger is running in a docker container with the source code bind-mounted to the container and I've specified a FWIW, so far, I haven't (I don't think) had any issues hitting breakpoints during local test execution of the same code. I originally chalked that up to other differences in the test environment (no threading in |
What does it show on the call stack when this message appears? You should be able to see the full path by hovering over the corresponding stack frame or the tab with the error message in the editor. The error does imply that path mappings are off, but yes, the logs do indeed seem to show correct mapping for all breakpoints. Just about the only thing I could think of that could still throw it off potentially is if the remote paths have a casing difference somewhere... Another possibility would be to use the Python |
Thanks so much for working with me on this, @int19h!
Indeed, the full path that That puts me hot on the trail of a mapping issue, because the I even tried to work around the issue by using Given that the path mappings logged in the @int19h - Is this still the right project and issue to be using for my situation? I don't want to muddy the waters too much if this is getting into different territory from the focus of this particular issue page.
I gave this a shot, but it didn't seem to work. I just added a |
@int19h - I'm very sorry to have taken your time with what was ultimately "user error." It turns out we accidentally had TWO COPIES of the source code in the container, the one that was properly mapped to the debugger was not the one that was actually being executed. After fixing that, I'm able to use the debugger without issue. Please feel free to hide my comments as "off topic" since they are probably just distracting for whatever might actually be going on for other folks. Thanks again! |
I don't know why, but after selecting interpreter to xxx/venv/bin/python manually, it worked. It's so strange and I am beginning to doubt my problem maybe is not the same as yours? But hope it is useful for you. |
Sample code below:
launch.json
When I choose to use python 3.11 as the interpreter, there is an error in debugging. After the first breakpoint stops, I click Continue, skip the next two breakpoints and output the result in the terminal.
Debugging with the python 3.10 version then everything works fine.
You can see the python version in the lower right corner.
Related StackOverflow questions.
The text was updated successfully, but these errors were encountered: