Toss in masked `.set_trace()` for unshielded `.pause()` debug

POST_final_eg_refinements_failafter_investigation
Tyler Goodlet 2025-08-10 15:07:42 -04:00
parent f7ca31c0e4
commit d2ad58d5d6
1 changed files with 3 additions and 0 deletions

View File

@ -561,6 +561,9 @@ async def _pause(
return
elif isinstance(pause_err, trio.Cancelled):
__tracebackhide__: bool = False
# XXX, unmask to REPL it.
# mk_pdb().set_trace(frame=inspect.currentframe())
_repl_fail_report += (
'You called `tractor.pause()` from an already cancelled scope!\n\n'
'Consider `await tractor.pause(shield=True)` to make it work B)\n'