0

I'm having trouble with java programming in vscode.

I already installed two extensions below. 'Java Debug Extension for Visual Studio Code' 'Language Support for Java(TM) by Red Hat'

When I push 'F5' to debug, this message comes up.

enter image description here

I click 'yes', then 'launch.json' is created in my folder 'C:/vscode_java'.

And I don't know what to write in 'launch.json'.

What do I have to do to make my code run in vscode?

2
  • 1
    That extension has a list of items in its description for the launch and attach portions of your launch.json. Such as "mainClass (required) - The main class of the program (fully qualified name, e.g. com.xyz.MainClass)." Try to follow that first and then show your code. Commented Oct 3, 2017 at 2:52
  • And this marketplace.visualstudio.com/… debugger extension seems to have better documentation. And see stackoverflow.com/questions/44022422/… for its use. Commented Oct 3, 2017 at 2:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.