如何在连接到远程JVM后调用方法?

huangapple 未分类评论55阅读模式
英文:

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

huangapple
  • 本文由 发表于 2020年7月28日 21:21:35
  • 转载请务必保留本文链接:https://java.coder-hub.com/63135145.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定