microsoft / microsoft/vscode-java-debug

java.debug.settings.hotCodeReplace "auto" has a wierd behaviour

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

还没有人认领这个 Issue。

ai-triaged bug
主要语言
TypeScript
星标
591
派生
429
平均合并
1 天 9 小时
30 天内合并 PR
19

描述

As per title if I set java.debug.settings.hotCodeReplace to "auto" it seems to trigger the "applying code changes" multiple time, which requires more time and eventually ends up in rebuilding the entire application instead of the single modified.
Image
I tried to look out for some kind of output or log to get core of the issue but without any success. I also tried to look out at the docs in case I messed up the settings but nothing looks out of place, except maybe for the "java.autobuild.enabled" set to true (which is not a debugger setting).

    "java.debug.settings.console": "internalConsole",
    "java.debug.settings.hotCodeReplace": "manual",
    "java.debug.settings.forceBuildBeforeLaunch": true

Manually invoking the hot code replace works as intended (at least per my knowledge).

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 Java 调试器中重现该问题,将 java.debug.settings.hotCodeReplace 设置为 "auto",将 java.autobuild.enabled 设置为 true,并启用 forceBuildBeforeLaunch。将反复出现的 "applying code changes" 行为和完整重建与手动 hot code replace 进行比较;当自动替换不再不必要地重复,也不再重建整个应用程序时,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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