What does the linux command get the stack of a running process without having to attach to it in the debugger?

What does the linux command get the stack of a running process without having to attach to it in the debugger?

I saw someone doing this before, but I don’t remember the team they used to do this.

This is very convenient as a quick way to see what your program is doing without missing the overhead of attaching to it in the debugger to get a stack trace to see where it is currently located.

+4
source share
1 answer

It looks like the command: / usr / bin / pstack, as shown on the pstack (1) man page.

+5
source

Source: https://habr.com/ru/post/1333292/


All Articles