All Questions
55 questions
1
vote
1
answer
39
views
vscode java debug - casting generic types watch expression
I am having problems while debuggin my app in vscode. I have an abstract class Container defined with generics in another class Element, and 3 subclasses of Container: Worker, Vehicle, Company. The ...
2
votes
0
answers
74
views
Debugging symbols are not loaded in vs code when remote debugging
I'm trying to remotely debug a Java web application running on Tomcat 7 using VS Code. The debugger successfully attaches to the remote instance and catches breakpoints in the call stack, but the ...
0
votes
0
answers
252
views
Can't launch Minecraft in debugging mode VScode
i have a problem with the run client,./gradlew runClientwork but when i try using the one with debbug it instant crash when mc open. I use vscode with the java extention pack and i install forge mdk 1....
0
votes
0
answers
131
views
How do I configure VS Code to debug an opensource project written in Java that uses ANT as its build command?
I'm trying to fix an opensource project using VS Code as my main ide that is a fairly complicated project written in Java, and it would go alot more quickly if I could actually do a step through of ...
1
vote
1
answer
2k
views
VS Code debug not stopping on breakpoints
I'm new to using VS Code as I've always used Eclipse IDE.
I'm trying to debug my java file in which I've created a breakpoint, but the debugger just runs the code as if there wasn't such a breakpoint.
...
0
votes
0
answers
279
views
Why is VS Code Java debugger looking for a JAR file for a dependency that does not exist?
I have the Java extension pack for VS Code installed as well as Red Hat Java language support extention. Every time I try to run and debug right away I get the error message Exception has occurred: ...
4
votes
1
answer
3k
views
VS Code exception Cannot evaluate because of java.lang.IllegalStateException: Project cannot be found
I'm running a Java Maven Web Application in VS Code. In debug mode when watching variables I get the above exception instead of the variable value.
Say my project is named xyz, this is my launch.json:
...
-1
votes
1
answer
117
views
Why can't I enter the Java Standard Library when debugging in VS Code?
I've been using VS Code for quite some time, on a number of machines. Never had an issue with stepping into functions and seeing the standard library if I so choose. However, on my new laptop I can't ...
0
votes
0
answers
494
views
VS Code to debug a Java Maven project dependency from my Gradle project
I have the following structure:
workspace
- blade
pom.xml
-blade-core
pom.xml
- target
com.hellokaton.blade.2.1.3.jdk17.jar
com....
0
votes
0
answers
488
views
Java Debug Adapter Protocol
I want to have Debug Adapter Protocol for Java for my application, I did much research but found only vscode implementations that can't be used for my app (because it contains a local vscode package).
...
0
votes
1
answer
2k
views
Java code in vscode not respecting breakpoints set in another thread, but it will break if set in the main thread
I am using vscode to debug a relatively huge java application with multiple maven modules. The core application is loaded and compiled, can be launched successfully in debug mode, and all breakpoints ...
0
votes
0
answers
545
views
'ERROR: transport error 202: recv error: Connection reset by peer' while debugging Maven Project in vscode
Environment:
VS Code Version: 1.73.1
Extension Version: Language Support for Java(TM) by Red Hat v1.13.2022111603
JDK Type & Version: Oracle jdk1.8.0_351 - 32bit
OS Type & Version: Windows 10 ...
0
votes
1
answer
2k
views
How to change Java Debug Arguments in vscode launch.json config?
I configure launch.json to launch Java debugger and working successfully. After a short while, I see error ERROR: transport error 202: recv error: Connection reset by peer. I did google it, and it was ...
2
votes
2
answers
396
views
Why VSCode shows strange "@number" (like int[10]@9) for arrays when debugging?
This was a simple binary search code and while I was debugging it for my better understanding, I got this remark a = int[10]@9 in the debugging panel - what does it mean (especially "@9" ...
0
votes
0
answers
157
views
Failed to start the program, error spawn ${env:JAVA_HOME}/bin ENOENT
Trying to set up vscode for java and faced problem when trying to run even simpliest stuff. Failed to start the program, error spawn ${env:JAVA_HOME}/bin ENOENT, and then suggest to open launch.json.
...