runProgramDebug<M extends Model> function
Runs a TUI program without panic catching (for debugging).
This is useful when you want exceptions to propagate normally so a debugger can catch them.
void main() async {
await runProgramDebug(MyModel());
}
Implementation
Future<void> runProgramDebug<M extends Model>(
M model, {
ProgramOptions? options,
}) async {
final opts = (options ?? const ProgramOptions()).withoutCatchPanics();
final program = Program<M>(model, options: opts);
await program.run();
}