0

I was running flask in a public_ip server(with some users)
run command is

(host='0.0.0.0', port=80, debug=True)

but flask server blocking somewhere one hour ago (the log show last request is one hour before) so how can I debug on it?(figure out it's blocking on which python line?)
I have tried

gdb python3.4-dbg pid,but my flask app can't run by python3.4-dbg,for

 from PIL import _imaging as core
ImportError: cannot import name '_imaging'

2 Answers 2

1

I believe the command is:

gdb -p pid

to attach to a running process.

Sign up to request clarification or add additional context in comments.

Comments

1

oh,I find a way
after install python-dbg
use gdb python pid to attach flask
and use py-bt py-list py-locals to check the blocking stack

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.