I am trying to run Java Programs (beginner) in VS Code. Whenever I try to run the program, it runs in the Terminal Panel. Any way I can change it so the end result is always in the Output/Debug panel.
It makes things a lot easier and cleaner.
I have been looking on the forums and the VSCode site to see if someone has already answered this but it hasn't been yet.
You might be using debugger for java as an extension. You can modify the extension settings within the extension manager. Look for Debugger for Java and press on the settings icon. A list will appear. Press extension settings. There you can change the console specification to what you want. Set it to internalConsole. Go back to your code and run. You will see that it will show up on the Debug Console instead of the integrated terminal.
you could try to add "console": "internalConsole"
in your launch.json like :
"configurations": [
{
"type": "java",
"name": "CodeLens (Launch) - App",
"request": "launch",
"mainClass": "com.test.maven.App",
"console": "internalConsole",
"projectName": "my.app"
}
]
then it will show in Debug Console
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With