feat: add config option to enable jit-in-time debugging
This option tells flow to start gdbserver and pause the process waiting for gdb to connect when a crash happens.
This commit is contained in:
parent
a0d0a8273c
commit
d9affca09b
2 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,8 @@ bottom_bar: []const u8 = "mode file log selection diagnostics keybind linenumber
|
|||
show_scrollbars: bool = true,
|
||||
show_fileicons: bool = true,
|
||||
|
||||
start_debugger_on_crash: bool = false,
|
||||
|
||||
include_files: []const u8 = "",
|
||||
|
||||
pub const DigitStyle = enum {
|
||||
|
|
|
@ -103,6 +103,9 @@ fn init(allocator: Allocator) InitError!*Self {
|
|||
var conf, const conf_bufs = root.read_config(@import("config"), allocator);
|
||||
defer root.free_config(allocator, conf_bufs);
|
||||
|
||||
if (conf.start_debugger_on_crash)
|
||||
tp.install_debugger();
|
||||
|
||||
const theme_, const parsed_theme = get_theme_by_name(allocator, conf.theme) orelse get_theme_by_name(allocator, "dark_modern") orelse return error.UnknownTheme;
|
||||
conf.theme = theme_.name;
|
||||
conf.whitespace_mode = try allocator.dupe(u8, conf.whitespace_mode);
|
||||
|
|
Loading…
Add table
Reference in a new issue