首先 ps -ef 查看 进程id
169434 158905 0 16:08 pts/15 00:00:00 /bin/python3 xxx.py
169439 169434 0 16:08 pts/15 00:00:01 /bin/python3 xxx.py
sudo gdb attach 169439 , 即可.
首先 ps -ef 查看 进程id
169434 158905 0 16:08 pts/15 00:00:00 /bin/python3 xxx.py
169439 169434 0 16:08 pts/15 00:00:01 /bin/python3 xxx.py
sudo gdb attach 169439 , 即可.