microsoft / microsoft/vscode-java-debug

When debug in second time, there is no code prompt in debug console

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

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

ai-triaged bug
主要言語
TypeScript
スター
591
フォーク
429
平均マージ
1日 9時間
マージ済み PR(30日)
19

説明

Good day all,

When I use vscode to debug java code, I found that when I debug my code more than one time, there is no code prompt in DEBUG CONSOLE.

My Environment:
Windows: Windows 11 Professional 24H2
VSCode: 1.97.2
Debugger for Java: v0.58.1
Java: Java 17

Reproduce Steps:

  1. Open code in VSCode;
  2. Waiting Java compile, and add break point;
  3. First time run code in debug mode;
  4. Open DEBUG CONSOLE, the code prompt function going well.
    Image
  5. Stop debug;
  6. Rerun code in debug mode and open DEBUG CONSOLE, there is no code prompt;
    Image

Continually, the code prompt function keeps unavailable even if:

  • Close and re-open vscode;
  • Clean Work Space
  • Re-compile the project
  • etc.

Unless, code prompt in DEBUG COLSE works again when:

  1. Close VSCode;
  2. Delete target folder in the directory;
  3. Reopen the project and first time debug the code;

The minimalist code is attached (Just a simple Springboot Application). Could anyone check if it is a bug or environment specific?

demo.zip

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

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

はじめの一歩

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

調査の方向性

添付された demo.zip を VS Code で開始し、記載されている Windows、Java、拡張機能のバージョンを使用して、文書化された first-debug と second-debug の手順を再現します。セッション間で DEBUG CONSOLE の補完動作を比較し、target を削除すると結果が変わるか確認します。デバッグセッションを停止して再実行した後もコードプロンプトが利用可能なままであれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, vscode
領域
devtools
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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