Download eclipse pydev6/10/2023 ![]() ![]() What now? Classic questions of how to go from async to sync say this is not possible. Still, users still want to do some evaluation in the breakpoint context which would await. You see, a debugger needs to work on the boundaries of callbacks which are called from python (i.e.: it will usually do a busy wait from a line event from a callback registered in sys.settrace which is always called as a sync call). ![]() Now, unfortunately a debugger has no such option. In Python asyncio land it's always a bit of a hassle when you have existing code which runs in sync mode which needs to be retrofitted to run in async, but it's usually doable - in many cases, slapping async on the top of a bunch of definitions and adding the needed await statements where needed does the trick - even though it's not always that easy. ![]()
0 Comments
Leave a Reply. |