Skip to content

Update launch.json debug configs to use debugpy - #38

Merged
david-yz-liu merged 1 commit into
mainfrom
fix/launch-json-debugpy
Nov 7, 2026
Merged

david-yz-liu merged 1 commit into
mainfrom
fix/launch-json-debugpy

Conversation

@david-yz-liu

Copy link
Copy Markdown
Contributor

Summary

  • Switch the Python debug configurations in .vscode/launch.json ("Python Attach", "Python Config for test explorer (hidden)", "Python debug server (hidden)") from the deprecated "python" debugger type to "debugpy".
  • Have "Python debug server (hidden)" listen on 127.0.0.1 instead of localhost, to match the default address debugpy.connect(5678) uses in bundled/tool/_debug_server.py.

Context

When launching "Debug Extension and Python", the language server could fail at startup with ConnectionRefusedError from debugpy.connect(5678), which surfaces in the Debug Console as "Pending response rejected since connection got disposed". This only affects the development launch configs, not the published extension.

Test plan

  • Launch "Debug Extension and Python" (F5) and confirm the language server starts and attaches to the debugger

🤖 Generated with Claude Code

Switch the Python debug configurations from the deprecated "python"
debugger type to "debugpy", and have the Python debug server listen on
127.0.0.1 to match the default address used by debugpy.connect() in
bundled/tool/_debug_server.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 42405692450

Coverage increased (+0.03%) to 65.282%

Details

  • Coverage increased (+0.03%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 1309
Covered Lines: 851
Line Coverage: 65.01%
Relevant Branches: 111
Covered Branches: 76
Branch Coverage: 68.47%
Branches in Coverage %: Yes
Coverage Strength: 2.2 hits per line

💛 - Coveralls

@david-yz-liu
david-yz-liu merged commit 0906826 into main Nov 7, 2026
7 checks passed
@david-yz-liu
david-yz-liu deleted the fix/launch-json-debugpy branch November 7, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants