microsoft / microsoft/vscode-java-debug

debug pauses on decompiled class file instead of source java files

Open
#915 6 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged bug sourcemap
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
  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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.