microsoft / microsoft/vscode-java-debug

debug pauses on decompiled class file instead of source java files

未关闭
#915 6 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

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

描述

debug pauses on decmpiled class file instead of source java files

Environment
  • Operating System: RHEL 7.6 on Remote and windows 10 on local machine
  • JDK version: 1.8.0_181
  • Visual Studio Code version: 1.51.1
  • Java extension version: 0.71
  • Java Debugger extension version: 0.29.0
Steps To Reproduce
  1. I have a project in a remote machine. Which works and compiles fine.
  2. The debug option is pausing on .class files instead of .java files.
  3. I tried adding this setting sourcePaths settings too. but it didn't work. Is there any specific synatax for that?
    e.g. if my source is in /opt/myproject/trunk/src/com/abcd/xyz/main.java
    Should I be adding /opt/myproject/trunk/src in this setting?

Language Server Logs

[Error - 11:55:35 AM] Nov 27, 2020, 11:55:35 AM Unable to load IDecompiler class for jarFileContentProvider

Current Result

Debugger pausing on .class files

Expected Result

Debugger should use the source .java files

Additional Informations

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先复现 issue 中描述的远程调试案例,并查看 Language Server Logs,尤其是为 jarFileContentProvider 加载 IDecompiler 失败的问题。然后检查 sourcePaths 设置和反编译类文件暂停的处理方式;完成的标准是断点在对应的 .java 文件中暂停,而不是在 .class 文件中暂停。

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

评估

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

把新 issue 发到你的邮箱

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