pip install pyrasite urwid meliae
아래와 같이 pid 확인 후 pyrasite-shell
실행
ps aux | grep python
pyrasite-shell 12345
이후 아래와 같이 예시 코드를 실행하면 현재 프레임 확인 가능
import sys, traceback
for thread, frame in sys._current_frames().items():
print('Thread 0x%x' % thread)
traceback.print_stack(frame)
print()