Ask questionsSupport for gevent in ptvsd
Currently ptvsd cannot run in a gevent/greenlet script, it just hungs:
from gevent import monkey
monkey.patch_all()
import ptvsd
ptvsd.enable_attach("test", address=('0.0.0.0', 3000))
ptvsd.wait_for_attach()
ptvsd.break_into_debugger()
It would be great if we could debug gevent apps.
Answer
questions
cyberw
The workaround by @layzerar used to work perfectly for me but now has issues.
At first I thought it had hung on patch_all(), but some debug printouts show that stepping forward the debugger advances my script, but VS doesnt show which line I am at and the call stack is empty.
Related questions