`step_into`/`step_out` report incorrect `currentLine` and `currentLineContent`
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- csharp, typescript, vscode
- 領域
- devtools
調査の方向性
step_into と step_out のエントリーポイントから始め、.NET コンソールアプリで報告されたシーケンスを再現し、currentLine と currentLineContent を get_variables_values と比較します。両方のツールがステップ実行後のデバッガーの実際の位置を報告し、step_over が引き続き次の行を正しく報告すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
The step_into and step_out tools report stale or incorrect values for currentLine and currentLineContent in their responses. The reported position does not match where the debugger actually stopped.
Steps to Reproduce
- Set a breakpoint on a line that calls a method (e.g., line 21:
int result = Add(a, b);) - Start debugging a .NET console app via
start_debugging - Hit the breakpoint (confirmed at line 21)
- Call
step_into
Expected: Response shows currentLine pointing to the first line inside the Add() method (e.g., line 8: return x + y;)
Actual: Response shows currentLine: 21 (the call site, not the stepped-into location). However, get_variables_values correctly shows the parameters of Add() (x, y), confirming the debugger DID step into the method.
Observed Pattern
| Tool | Position Reported | Variables Reported | Actual Location |
|---|---|---|---|
step_into |
Call site (stale) | Correct (target method params) | Inside target method |
step_out |
Inside method (stale) | Correct (caller's locals) | Back in caller |
step_over |
Usually correct | Correct | Next line |
The position appears to be "one step behind" - reporting where the debugger WAS, not where it IS after the step completed.
Workaround
Always call get_variables_values after stepping to determine the true execution state. The variables are always accurate and reflect the actual paused location.
Impact
AI agents that rely on currentLine to build a mental model of execution flow will have an incorrect picture, potentially leading to confused reasoning about program state.
Environment
- DebugMCP v1.1.4
- .NET 9.0 console app (coreclr)
- VS Code stable (latest)
- C# extension: ms-dotnettools.csharp-2.140.8-win32-x64
- 主要言語
- 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 件 ·