How to debug imported classes #1226
-
I've searched, I can't find a way to debug classes from imported jars. I can step into imported classes, and I even see local variables load, but the code shown in the editor just has method interfaces defined; no code within any functions/methods. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
The same problem here but in the preview version of the debugger I was able to navigate the imported classes file of the project |
Beta Was this translation helpful? Give feedback.
-
If the associated source jar exists in local maven repositories, the debugger will automatically open the class source well. For your case, looks like the source jar is not ready (might be in downloading), Java extension just decompiles a stub code with method signature first for use. You can wait for a moment and let Java extension finish downloading the source jar on backend first, because Java extension lazily downloads source jar when the source is needed. |
Beta Was this translation helpful? Give feedback.
-
Several upgrades of VS Code later (now at 1.74.1), the problem no longer exists. |
Beta Was this translation helpful? Give feedback.
Several upgrades of VS Code later (now at 1.74.1), the problem no longer exists.