Skip to content

trace 命令如何通过子类追踪父类中的方法 #3043

@bf109f

Description

@bf109f
  • 我已经在 issues 里搜索,没有重复的issue。

重现问题的步骤

  1. 有一个controller A 继承 controller B
  2. B中有个方法C ,A中无方法C 如果通过A追踪到方法C
  3. 执行命令trace com.test.arthastest.controller.TestController test1 -n 5 --skipJDKMethod false报错
No class or method is affected, try:
1. Execute `sm CLASS_NAME METHOD_NAME` to make sure the method you are tracing actually exists (it might be in your parent class).
  1. 测试代码

期望的结果

请问这种情况下该如何追踪?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions