Add a manual debug mode kwarg to debugger waiter

agpl
Tyler Goodlet 2021-12-09 17:50:16 -05:00
parent 95c52436e5
commit 5d9e3d1163
1 changed files with 4 additions and 2 deletions

View File

@ -577,10 +577,12 @@ async def acquire_debug_lock(
async def maybe_wait_for_debugger(
poll_steps: int = 2,
poll_delay: float = 0.1,
poll_delay: float = 0.01,
child_in_debug: bool = False,
) -> None:
if not debug_mode():
if not debug_mode() and not child_in_debug:
return
if (