When gdb is used for debugging purposes in Java:
I would say gdb is used for debugging Java when the programmer is coming from a different language and is already familiar with gdb. Otherwise, it seems like a strange choice given that there are more popular alternatives for Java: jdb, JSwat, eclipse, netbeans, etc.
Here is a tutorial for debugging Java with gdb.
GDB is 99% of the time is not useful for debugging Java, but it can help you find native memory leaks which the java debuggers can't.
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