与本地应用程序不同,Java 应用程序不包含便于访问的名称索引。因此,例如,您不能仅指定方法名称:
(dbx) stop in myMethod #This will not work
而是需要使用该方法的完整路径。
(dbx) stop in com.any.library.MyClass.myMethod
当您因使用 MyClass 的某种方法(myMethod 原本应已足够)而被迫停止时,便会出现异常情况。
有一种方法可避免将完整路径包括在该方法中,即:使用 stop inmethod。
(dbx) stop inmethod myMethod
但是,此命令可能会导致停止多个方法名称 myMethod。