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?
Check out jdiscript; it's a thin scripting frontend for the JDI that can be used with Java, JRuby, or any other jvm language.
来源:https://stackoverflow.com/questions/630044/how-to-script-the-java-debugger-command-line-tool-jdb