debugpy exits due to Xfrozen_modules
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
Start by reproducing the command from the issue with Python 3.12, Ubuntu 24.04, and the poky BitBake target. Trace debugpy's handling of frozen modules after the debugger attaches; done means the debugger stays running and can be started from VS Code without exiting.
Written by the indexing model from the issue text.
Description
Environment data
- debugpy version: 1.8.16
- OS and version: ubuntu 24.04
- Python version : 3.12
- Using VS Code or Visual Studio: vs code
Actual behavior
python -Xfrozen_modules=off -m debugpy --wait-for-client --listen 5675 ../poky/bitbake/bin/bitbake busybox
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
Expected behavior
skip frozen_module and not exit the debugger
Steps to reproduce:
clone poky
source poky/oe-init-build-env
python -Xfrozen_modules=off -m debugpy --wait-for-client --listen 5675 ../poky/bitbake/bin/bitbake busybox
run debugger in vscode
- 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
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
canonical/paas-charm#368 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
StevenBlack/hosts#3256 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
qualcomm/qai-appbuilder#275 ·