0

I came across this active state recipe on seeing this answer on 'How to find where a running python program is getting hung?'. I admit I am a noob at python. How to make use of this?

Tejas Shetty
  • 685
  • 6
  • 30

1 Answers1

0

I am assuming that you have saved the active state recipe as 'hung.py' in the same folder as the original hung program.

  • Get the process id (pid) of the hung python program. say 123 (Hint: Use htop)
  • Go to a terminal and type python hung.py 123 (Use the correct pid instead of 123 )
  • You are done.
Tejas Shetty
  • 685
  • 6
  • 30