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

落花浮王杯 提交于 2020-01-11 04:06:06

问题


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?


回答1:


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




回答2:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!