I couldn't make this work with JDK 23, 21 or 17, I got the following error:
Failed to execute goal org.teavm:teavm-maven-plugin:0.6.1:compile (web-client) on project flavour: Unexpected error occurred: Unsupported class file major version 61
A good debugger can provide more than just stepping thru code.
In IntelliJ with Java, you can set conditonal breakpoints with complex evaluations, you can set filters (only hit a breakpoint depending from where it is being called), use exception methods that only hit on certain exceptions instead of a specific line code, you can also use logging breakpoints, that act like printf debuging, but you don't need to scatter your code with print statements all over the place.
You can group, add descripitons, disable, enable and add temporary breakpoints, they are pretty powerful! I just wish intellij had a time travel debbuger like Visual Studio Pro.