无需在调试器中附加到正在运行的进程的堆栈,Linux 命令是什么?
获取正在运行的进程的堆栈而无需在调试器中附加到它的linux命令是什么?
我以前见过有人这样做,但不记得他们用来做这件事的命令。
这确实很方便,可以快速查看程序正在执行的操作,而无需在调试器中附加到程序来获取堆栈跟踪以查看程序当前所在的位置。
What's the linux command to get the stack of a running process without having to attach to it in a debugger?
I've seen someone do this before, but do not recall the command they used to do it.
This is really handy as a quick way to see what your program is doing without going through the overhead of attaching to it in a debugger to get the stack trace to see where it is currently at.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来该命令是 /usr/bin/pstack,如手册页 pstack(1) 所示。
It looks like the command is /usr/bin/pstack as shown at man page pstack(1).