I am relatively new to Java but need to do some changes to Java code. I prefer using Visual Studio Code for this. The Java code builds to .WAR file using Maven and is deployed to Tomcat.
Is there any way to debug this app directly from Visual Studio Code?
Visual Studio Code allows you to debug Java applications through the Debugger for Java extension. It's a lightweight Java debugger based on Java Debug Server, which extends the Language Support for Java™ by Red Hat. Here's a list of supported debugging features: Launch/Attach.
In Visual Studio Code, open the Extensions view (Ctrl+Shift+X). Type "java" to filter the list. Find and install the Extension Pack for Java or standalone Debugger for Java extension if you already have Language Support for Java™ by Red Hat installed.
Visual Studio Code has a lot of tools to do this in marketplace.
For Tomcat you can use this: https://marketplace.visualstudio.com/items?itemName=adashen.vscode-tomcat
You can do all this things:
You need the debugger posted by Mert Mertce tho.
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