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
This feature enables configuration-less debugging for Java applications, similar to the JavaScript Debug Terminal in VS Code.
How It Works
When you open a terminal in VS Code with this extension installed, the following environment variables are automatically set:
VSCODE_JDWP_ADAPTER_ENDPOINTS: Path to a communication file for port exchange
PATH: Includes the debugjava command wrapper
Note: JAVA_TOOL_OPTIONS is NOT set globally to avoid affecting other Java tools (javac, maven, gradle). Instead, it's set only when you run the debugjava command.
Usage
Basic Usage
Instead of running:
java -cp . com.example.Main
Simply run:
debugjava -cp . com.example.Main
The debugger will automatically attach, and breakpoints will work without any launch.json configuration!