Run release hook around `next` repl commands as well

signint_saviour
Tyler Goodlet 2022-07-28 09:27:39 -04:00
parent cb0c47c42a
commit bd362a05f0
1 changed files with 9 additions and 0 deletions

View File

@ -117,6 +117,15 @@ class MultiActorPdb(pdbpp.Pdb):
if _pdb_release_hook: if _pdb_release_hook:
_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. # TODO: will be needed whenever we get to true remote debugging.
# XXX see https://github.com/goodboy/tractor/issues/130 # XXX see https://github.com/goodboy/tractor/issues/130