Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

DebugMCP incorrectly infers .exe target on WSL instead of using existing launch.json program

オープン
#70 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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:

  1. Use the existing VS Code debug configuration exactly as defined
  2. Respect the "program" field from launch.json
  3. Avoid generating .exe targets on Linux/WSL environments
  4. Avoid inferring executables from source filenames when a valid launch configuration already exists

Additional notes

  • Starting the debug session manually with F5 works perfectly
  • Breakpoints work correctly
主要言語
TypeScript
スター
511
フォーク
60
平均マージ
2日 1時間
マージ済み PR(30日)
18

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/DebugMCP のほかの issue

microsoft/DebugMCP の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。