pstack
GNU Debugger
Install
- All systems
-
curl cmd.cat/pstack.sh
- Debian
-
apt-get install pstack
- Ubuntu
-
apt-get install pstack
- Alpine
-
apk add gdb
- Arch Linux
-
pacman -S gdb
- Kali Linux
-
apt-get install pstack
- CentOS
-
yum install gdb
- Fedora
-
dnf install gdb
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install pstack
- OS X
-
brew install gdb
- Raspbian
-
apt-get install gdb
- Dockerfile
- dockerfile.run/pstack
- Docker
-
docker run cmd.cat/pstack pstack
powered by Commando
gdb
GNU Debugger
GDB is a source-level debugger, capable of breaking programs at any specific line, displaying variable values, and determining where errors occurred. Currently, gdb supports C, C++, D, Objective-C, Fortran, Java, OpenCL C, Pascal, assembly, Modula-2, Go, and Ada. A must-have for any serious programmer.
pstack
Display stack trace of a running process
pstack dumps a stack trace for a process, given the PID of that process. If the process named is part of a thread group, then all the threads in the group are traced.