英文:
How to invoke a method after attaching to a remote JVM?
问题
为了测试/调试目的,我需要从我的调试器(内置的IntelliJ IDEA调试器)中调用一些服务方法,并使用我的自定义参数,这个方法可以是类实例的成员或静态函数,这种操作可能吗?如何实现?
我可以设置断点,并在即将执行该方法时更改参数值,但我不想这样做。
英文:
for testing/debugging purposes I need to invoke some service methods from my debugger (built-in intellij idea debugger) with my custom parameters, this method may be a member of a class instance or a static function, is this possible? how?
I can set a break point and change the parameters value when the method is about to be executed but I do not want to do this
专注分享java语言的经验与见解,让所有开发者获益!
评论