I have been working on a LibGDX game/application, and due to the use of Gradle was not really sure how to debug it.
I don't use an IDE and mostly debug with JDB but couldn't find anywhere how to do it.
The documentation is not very revealing either.
I have been working on a LibGDX game/application, and due to the use of Gradle was not really sure how to debug it.
I don't use an IDE and mostly debug with JDB but couldn't find anywhere how to do it.
The documentation is not very revealing either.
Copyright © 2021 Jogjafile Inc.
The best way I have found is to run th program in debug mode with:
Gradle will then start listening to a socket and prompt it:
In a second terminal you need to launch
jdbwith the-attachflag followed by the socket:From this point onward you can debug the program, as you would normally do with jdb.