简体   繁体   中英

Is there any linux tool can find the process trace of a python program?

I have a python process running now , but it hangs with no log、no exception, i don't know what's going on with it.

This bug turns out every 5 or 6 hours, so this time i don't want to kill the process and trying to find a way to trace which line it hangs.

I have tried PStack , but i can't understand the system call it lists.

Is there any tool can show me which line the program hangs, it will be perfect if the trace info shows in python ?

您可以将gdb与python一起使用: http//docs.python.org/devguide/gdb.html ,它可以为您提供python堆栈的回溯。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM