You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep having issues with my java debugging program. I set up a JDK, Java code, and launch.json. However, whenever I try to debug it, I get "Internal Error." I have tried restarting VS code, reinstalling the add on, but I get the same output every time.
Here the code I used: Launch.json: { "version": "0.2.0", "configurations": [ { "name": "Debug Main.jar", "type": "jdk", "request": "launch", "mainClass": "Main", } ] } Main.jar: public class Main { public static void main(String[] args) { System.out.println("Hello World"); } }
The text was updated successfully, but these errors were encountered:
Hey @CURTIS200 , mainClass field in launch.json requires absolute path to the main class. Sorry for the inconvenience caused, can you please try that once and tell us if it helps. Please refer to related issue: #36
I keep having issues with my java debugging program. I set up a JDK, Java code, and launch.json. However, whenever I try to debug it, I get "Internal Error." I have tried restarting VS code, reinstalling the add on, but I get the same output every time.
Here the code I used:
Launch.json:
{ "version": "0.2.0", "configurations": [ { "name": "Debug Main.jar", "type": "jdk", "request": "launch", "mainClass": "Main", } ] }
Main.jar:
public class Main { public static void main(String[] args) { System.out.println("Hello World"); } }
The text was updated successfully, but these errors were encountered: