How to script the java debugger command-line tool

2019-02-15 14:17发布

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?

2条回答
一夜七次
2楼-- · 2019-02-15 14:48

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

查看更多
我命由我不由天
3楼-- · 2019-02-15 14:53

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

查看更多
登录 后发表回答