microsoft / microsoft/vscode-java-debug

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

未关闭
#1,536 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

ai-triaged bug
主要语言
TypeScript
星标
591
派生
429
平均合并
1 天 9 小时
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 VS Code 中从附加的 demo.zip 开始,并使用列出的 Windows、Java 和扩展版本重现文档所述的 first-debug 和 second-debug 流程。比较各会话之间 DEBUG CONSOLE 的补全行为,并检查删除 target 是否会改变结果。停止并重新运行调试会话后,代码提示仍然可用即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, vscode
领域
devtools
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。