Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行trace命令没有结果 #2817

Open
1 task
Pan-yancheng opened this issue Apr 11, 2024 · 0 comments
Open
1 task

执行trace命令没有结果 #2817

Pan-yancheng opened this issue Apr 11, 2024 · 0 comments

Comments

@Pan-yancheng
Copy link

  • 我已经在 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循环调用的信息

实际运行结果:
image

为什么看不到trace信息?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant