Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想单步执行一个 Java 方法并查看本地程序堆栈和寄存器。例如,如果执行了 PUSH 指令,我想查看堆栈顶部的值、堆栈深度、该值下的值等。有没有办法在 Java 中捕获它?
挂起一个线程,访问它的堆栈帧并使用StackFrame对象查询当前状态。