Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to script the java debugger command-line tool (jdb)?

How can I drive the debugging session with some scripting language like ruby? Is there any easier options than using Expect or some similar module with a scripting language?

like image 992
JtR Avatar asked Aug 10 '26 04:08

JtR


2 Answers

You may be able to use JRuby to drive your own debugger via the JPDA API.

like image 90
McDowell Avatar answered Aug 12 '26 18:08

McDowell


Check out jdiscript; it's a thin scripting frontend for the JDI that can be used with Java, JRuby, or any other jvm language.

like image 31
jfager Avatar answered Aug 12 '26 18:08

jfager



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!