microsoft / microsoft/vscode-java-debug
debug pauses on decompiled class file instead of source java files
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 591
- Forks
- 429
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 19
Description
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
- I have a project in a remote machine. Which works and compiles fine.
- The debug option is pausing on .class files instead of .java files.
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the remote-debugging case described in the issue and review the Language Server Logs, especially the failure to load IDecompiler for jarFileContentProvider. Then inspect how the sourcePaths setting and decompiled class-file pause are handled; done means breakpoints pause in the corresponding .java files instead of .class files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100