执行trace命令没有结果
Pan-yancheng opened this issue · comments
Pan-yancheng commented
- 我已经在 issues 里搜索,没有重复的issue。
重现问题的步骤
` */
package com.example
public class RecursiveFunction {
public static void methodA() throws InterruptedException {
System.out.println("Inside Method A");
Thread.sleep(1000);
methodB();
}
public static void methodB() throws InterruptedException {
System.out.println("Inside Method B");
Thread.sleep(1000);
methodA();
}
public static void main(String[] args) throws InterruptedException {
methodA();
}
}`
在以上代码正常运行过程中,执行trace命令:
trace com.example.RecursiveFunction methodA
期望的结果:
trace结果中看到methodA和methodB循环调用的信息
为什么看不到trace信息?