Issue:
VS Code's Python debugger is not stopping at breakpoints. The issue began after modifying the
launch.json file, notably the "
justMyCode
" setting.
System Information:
OS: macOS Monterey 13.1
Python: 3.10.12
VSCode Version:
Version: 1.81.1
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09
Electron: 22.3.18
Chromium: 108.0.5359.215
Node.js: 16.17.1
OS: Darwin arm64 22.2.0
Context:
This revised summary integrates the added information and is ready for submission.
What I have tried:
The debugger was functioning as expected before.
Editing the
launch.json file seems to have triggered the issue.
The problem persists even on simple Python scripts.
Steps Taken to Resolve the Issue:
Confirmed "
justMyCode
" is set to
true
in
launch.json.
Deleted and recreated
launch.json.
Verified the file being debugged is a valid Python script.
Checked breakpoint placements.
Ensured the chosen debugger configuration is "
Python: Current File
".
Reset all Python-related settings in VS Code to default.
Checked the Python interpreter in use by VS Code.
Created a new VS Code workspace and attempted debugging in a fresh environment.
Examined the
.vscode directories and their potential effect.
Reinstalled the Python extension for VS Code.
Successfully debugged outside of VS Code using pdb.
Despite these measures, the debugger continues to bypass breakpoints. Your assistance or further troubleshooting steps would be invaluable.
My questions:
- Has anyone else had this problem?
- Is there anything else I can try?
Note: As usual, ChatGPT is of no help, same as bard.
John