DebugMCP incorrectly infers .exe target on WSL instead of using existing launch.json program
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- cpp, typescript, vscode
調査の方向性
まず、"Debug nanopb simple" という名前の既存の launch.json 構成がどのように選択され、そこにある fileFullPath と workingDirectory がどのようにデバッグターゲットへ変換されるかを調べます。提供されている cppdbg 構成を使って WSL のケースを再現し、構成されたプログラムパスが使用され、simple.exe ターゲットが生成されないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
Environment
- VS Code: 1.119.0
- Platform: Linux (WSL / Dev Container)
- Architecture: x64
- DebugMCP server running successfully
- C/C++ extension installed (
ms-vscode.cpptools) - Debug adapter:
cppdbg - Debugger:
gdb
Problem
DebugMCP fails to start an existing C/C++ debug configuration on WSL/Linux.
Manual debugging with F5 works correctly using the existing launch.json.
However, when DebugMCP attempts to start the debug session, it appears to ignore or override the configured "program" field and instead derives a Windows-style executable name from the source file.
It attempts to launch:
/workspaces/ubuntu-c3c/nanopb/build-tests/legacy_cmake_simple/simple.exe
which does not exist.
The real executable is:
/workspaces/ubuntu-c3c/nanopb/build-tests/legacy_cmake_simple/build/simple
Existing launch.json
{
"name": "Debug nanopb simple",
"type": "cppdbg",
"request": "launch",
"program": "/workspaces/ubuntu-c3c/nanopb/build-tests/legacy_cmake_simple/build/simple",
"cwd": "/workspaces/ubuntu-c3c/nanopb/build-tests/legacy_cmake_simple/build",
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb"
}
Observed behavior
DebugMCP agent output references:
{
"fileFullPath": "/workspaces/ubuntu-c3c/nanopb/build-tests/legacy_cmake_simple/simple.c",
"workingDirectory": "/workspaces/ubuntu-c3c/nanopb/build-tests/legacy_cmake_simple",
"configurationName": "Debug nanopb simple"
}
and then attempts to launch:
simple.exe
instead of using the configured "program" value from launch.json.
Expected behavior
DebugMCP should:
- Use the existing VS Code debug configuration exactly as defined
- Respect the
"program"field fromlaunch.json - Avoid generating
.exetargets on Linux/WSL environments - Avoid inferring executables from source filenames when a valid launch configuration already exists
Additional notes
- Starting the debug session manually with
F5works perfectly - Breakpoints work correctly
- 主要言語
- TypeScript
- スター
- 511
- フォーク
- 60
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 18
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/DebugMCP のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
microsoft/DebugMCP の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/claude-code#96687 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/DebateAI#582 · コメント 2 件 ·