catchPanics property

bool catchPanics
final

Whether to catch panics (exceptions) and restore terminal state.

When true (default), exceptions are caught, terminal state is restored, and a formatted error message with stack trace is printed.

When false, exceptions propagate normally. This is useful for debugging with a debugger that needs to catch exceptions.

Implementation

final bool catchPanics;