wait_for_native_debugger#

carb.wait_for_native_debugger(
timeout: float = -1.0,
stop: bool = False,
quiet: bool = False,
) bool#

Waits for a debugger to attach.

Blocks (with GIL released) until a native debugger attaches to the process or a timeout occurs.

Parameters:
  • timeout – The time in seconds to wait. Negative values mean to wait forever. A value of 0 will check if a native debugger is attached without waiting. Optional, default value is -1.

  • stop – If True, a breakpoint is triggered immediately after a debugger attaches. If a timeout is reached instead, no breakpoint is triggered. Optional, default value is False.

  • quiet – When called if a debugger is not already attached a message is printed to stdout unless this is True. Optional, default value is False.

Returns:

True if a native debugger attached, False if a timeout is reached.