feat: more improvements to panic handling
Follow on panics no longer confuse the panic output and the just in time debugger now works properly on the local tty.
This commit is contained in:
parent
14dce0a10b
commit
e9735d9425
5 changed files with 42 additions and 12 deletions
|
@ -149,11 +149,10 @@ pub fn main() anyerror!void {
|
|||
return list_languages.list(a, stdout.writer(), tty_config);
|
||||
}
|
||||
|
||||
if (builtin.os.tag != .windows)
|
||||
if (std.posix.getenv("JITDEBUG")) |_|
|
||||
thespian.install_debugger()
|
||||
else if (@hasDecl(renderer, "install_crash_handler"))
|
||||
renderer.install_crash_handler();
|
||||
if (builtin.os.tag != .windows and @hasDecl(renderer, "install_crash_handler")) {
|
||||
if (std.posix.getenv("JITDEBUG")) |_| renderer.jit_debugger_enabled = true;
|
||||
renderer.install_crash_handler();
|
||||
}
|
||||
|
||||
if (args.debug_wait) {
|
||||
std.debug.print("press return to start", .{});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue