[gnome-builder] debugger: add option to disable breakpoint on main()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] debugger: add option to disable breakpoint on main()
- Date: Fri, 7 May 2021 16:42:16 +0000 (UTC)
commit 657ae6da8b5971e05892db6b222075410c6efb51
Author: Christian Hergert <chergert redhat com>
Date: Fri May 7 09:41:59 2021 -0700
debugger: add option to disable breakpoint on main()
data/gsettings/org.gnome.builder.build.gschema.xml | 5 +++++
src/libide/gui/ide-preferences-builtin.c | 4 ++++
2 files changed, 9 insertions(+)
---
diff --git a/data/gsettings/org.gnome.builder.build.gschema.xml
b/data/gsettings/org.gnome.builder.build.gschema.xml
index 07dc061a0..bf6cb0997 100644
--- a/data/gsettings/org.gnome.builder.build.gschema.xml
+++ b/data/gsettings/org.gnome.builder.build.gschema.xml
@@ -11,5 +11,10 @@
<summary>Allow network when metered</summary>
<description>Enable automated transfers upon building such as SDK downloads and dependencies when
connection is metered.</description>
</key>
+ <key name="debugger-breakpoint-on-main" type="b">
+ <default>false</default>
+ <summary>Debugger Breakpoint on Main</summary>
+ <description>Debugger should automatically insert breakpoint on main function.</description>
+ </key>
</schema>
</schemalist>
diff --git a/src/libide/gui/ide-preferences-builtin.c b/src/libide/gui/ide-preferences-builtin.c
index 39bb7e553..36a39a69d 100644
--- a/src/libide/gui/ide-preferences-builtin.c
+++ b/src/libide/gui/ide-preferences-builtin.c
@@ -410,6 +410,10 @@ ide_preferences_builtin_register_build (DzlPreferences *preferences)
dzl_preferences_add_list_group (preferences, "build", "network", _("Network"), GTK_SELECTION_NONE, 100);
dzl_preferences_add_switch (preferences, "build", "network", "org.gnome.builder.build",
"allow-network-when-metered", NULL, NULL, _("Allow downloads over metered connections"), _("Allow the use of
metered network connections when automatically downloading dependencies"), NULL, 10);
+
+ dzl_preferences_add_page (preferences, "debugger", _("Debugger"), 550);
+ dzl_preferences_add_list_group (preferences, "debugger", "general", _("Breakpoints"), GTK_SELECTION_NONE,
0);
+ dzl_preferences_add_switch (preferences, "debugger", "general", "org.gnome.builder.build",
"debugger-breakpoint-on-main", NULL, NULL, _("Insert Breakpoint at Start of Application"), _("Automatically
stop execution at the start of the applications main function"), NULL, 0);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]