I remote debug my application using JDB, just JDB, no IDEs, is there a way in jdb to set a conditional breakpoint?
eg: stop at MyClass:80 when mystr.equals("abc")
Jdb does not support conditional breakpoints, but as a last-resort you may try compiling your program with gcj and using gdb to do the debugging, which does support conditional breakpoints. Depending on the complexity of your project this may or may not be a feasible option. There may be other lesser-known command-line debuggers that you could use as well.
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