Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Debugging is not showing the source file #905

Closed
willianm opened this issue Nov 9, 2020 · 7 comments
Closed

Remote Debugging is not showing the source file #905

willianm opened this issue Nov 9, 2020 · 7 comments

Comments

@willianm
Copy link

willianm commented Nov 9, 2020

Something happened from v0.28.0 to v0.29.0. After I upgraded the extension "Debugger from Java", VS Code doesn't show me the source code when it stops in a breakpoint. Instead, it shows me the ".class" file. It's weird, because:

  1. I can see in the Call Stack that it is stopping in the correct line
  2. I can still add the break point in the source code file
  3. It just doesn't show me the source code and it doesn't highlight the line of code

If I downgrade the extension to v0.28.0, then it shows the correct source code file and highlights the correct line of code.

I'm using Remote Development Extension

Environment
  • Remote Operating System: Docker image: lambci/lambda
  • Local Operating System: macOS Catalina
  • JDK version: 8
  • Visual Studio Code version: 1.51.0
  • Java extension version: v0.10.0
  • Java Debugger extension version: v0.29.0
Steps To Reproduce
  1. Setup your environment to use VS Code remote development
  2. Add a breakpoint and run the application in a docker container
  3. Attach the debugger
  4. Wait for it to hit the breakpoint
Current Result

It will show a .class file with the skeleton of the class

Expected Result

Show the source code and highlight the line

Additional Informations
@mdcashion
Copy link

Good find!
I pulled my hair out trying to figure out why I couldn't debug .java code because the debugger was showing .class files.
This is a major problem and should be fixed ASAP!

@testforstephen
Copy link
Contributor

Does this issue still exist in the latest debugger 0.37.0?

@mdcashion
Copy link

The problem does not exist in Debugger for Java v0.37.0.

@testforstephen
Copy link
Contributor

thank you for confirm. I'm closing it, feel free to reopen it if you suffered the issue again.

@hichits
Copy link

hichits commented Jan 14, 2024

am seeing the same problem in v0.55.2023121302

@iisystems
Copy link

I'm also seeing this on v0.57.0

@V4sec
Copy link

V4sec commented Apr 23, 2024

I'm also seeing this on v0.57.0, it shows "Could not load source 'XXX.java': SourceRequest: property 'sourceReference' is missing, null, or empty."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants