forked from goodboy/tractor
1
0
Fork 0

Run release hook around `next` repl commands as well

sigintsaviour_citesthackin
Tyler Goodlet 2022-07-28 09:27:39 -04:00
parent 58956ae950
commit d4a36e57d1
1 changed files with 9 additions and 0 deletions

View File

@ -117,6 +117,15 @@ class MultiActorPdb(pdbpp.Pdb):
if _pdb_release_hook:
_pdb_release_hook()
def set_next(self, frame):
try:
super().set_next(frame)
finally:
global _local_task_in_debug, _pdb_release_hook
_local_task_in_debug = None
if _pdb_release_hook:
_pdb_release_hook()
# TODO: will be needed whenever we get to true remote debugging.
# XXX see https://github.com/goodboy/tractor/issues/130