Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jdb conditional breakpoint

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")

like image 451
Murali Avatar asked Apr 30 '10 19:04

Murali


1 Answers

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.

like image 182
Stephen Herr Avatar answered Nov 15 '22 21:11

Stephen Herr