Debugger hits breakpoints, but doesn't retrieve variables or continue execution
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Reproduce the Flask attach setup using debugpy.listen(("0.0.0.0", 5678)) and the supplied launch.json, with the Docker and Docker Compose port mapping. Start by reviewing the linked adapter, pydevd, and server logs; done means breakpoints expose variables and execution can continue.
Written by the indexing model from the issue text.
Description
Environment data
- debugpy version: 1.8.0
- OS and version: OSX 14.2.1 (ARM / Apple Silicon M2)
- Python version: 3.8.18
- Using VS Code or Visual Studio: VS Code 1.85.1
Actual behavior
Screen recording because it's clear: https://youtu.be/kKX6Oi2mu14
Description:
- I'm launching with: debugpy.listen(("0.0.0.0", 5678))
- My setup is a docker & docker compose file, deployed via Orbstack, which exposes & maps port 5678
- I'm running a Flask app.
- My launch.json is here:
{ "name": "Backend attach (Docker)", "type": "python", "request": "attach", "justMyCode": false, "connect": { "host": "0.0.0.0", // replace this with remote machine name "port": 5678 }, "pathMappings": [ { "localRoot": "${workspaceFolder}", "remoteRoot": "/app" } ] }
Here are the log files:
debugpy.adapter-56.log
debugpy.adapter-104.log
debugpy.pydevd.14.log
debugpy.pydevd.62.log
debugpy.server-14.log
debugpy.server-62.log
Expected behavior
I expect to see variables and continue execution.
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 202
- Avg merge
- 5d 1h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/debugpy
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
All issues in microsoft/debugpy
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
huggingface/Repo2RLEnv#163 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
NousResearch/hermes-agent#121143 ·