Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

debugpy exits due to Xfrozen_modules

Open
#1,952 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
devtools

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

bug

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/debugpy

All issues in microsoft/debugpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.