Debugging
Attach IntelliJ IDEA's remote JVM debugger to set breakpoints and inspect your running game.
An embedded JRE needs the jdk.jdwp.agent module; a full system JDK includes it. Desktop explains how to add runtime modules.
In Godot
Open Godot's run-instance settings with Debug > Customize Run Instances and add --jvm-use-debug --jvm-debug-port=5005 to Main Run Args.


The game waits for a debugger when you set a debug port or address. Add --jvm-wait-for-debugger=false to let it start immediately.
In IntelliJ IDEA
- Add a Remote JVM Debug run configuration named Debug Game.
- Set the host to
localhostand the port to5005. - Set a breakpoint in your script.
- Run the scene or project in Godot, then start Debug Game in IntelliJ IDEA.

Execution pauses at the breakpoint so you can inspect variables and step through the code.
godot_jvm_configuration.json in the project root stores persistent runtime settings. See the Reference below for its keys and all JVM flags.
Details: Reference.
Next: Libraries.