From f7cd2be039c490897d40c1d8af214320116b0675 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 29 Jul 2020 20:48:15 -0400 Subject: [PATCH] Play with re-entrant trace --- debugging/mp_debug.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/debugging/mp_debug.py b/debugging/mp_debug.py index dfbfa91..a279715 100644 --- a/debugging/mp_debug.py +++ b/debugging/mp_debug.py @@ -4,8 +4,9 @@ import trio async def bubble(): print('IN BUBBLE') - await trio.sleep(.1) - await tractor.breakpoint() + while True: + await trio.sleep(.1) + await tractor.breakpoint() async def bail(): @@ -27,4 +28,4 @@ async def main(): if __name__ == '__main__': - tractor.run(main, loglevel='critical', debug_mode=True) + tractor.run(main, loglevel='error', debug_mode=True)