allow setting debug flags via an environment variable (ARDOUR_DEBUG_FLAGS)
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 13 Dec 2019 20:06:31 +0000 (13:06 -0700)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 13 Dec 2019 20:14:15 +0000 (13:14 -0700)
gtk2_ardour/main.cc

index 1e84fe541ae64ac0f8ce74a2bc6272115c825b46..ff45beff4267b45c052c7dbf0e285ded5aa875f6 100644 (file)
@@ -358,6 +358,13 @@ int main (int argc, char *argv[])
                exit (EXIT_FAILURE);
        }
 
+       {
+               const char *adf;
+               if ((adf = g_getenv ("ARDOUR_DEBUG_FLAGS"))) {
+                       PBD::parse_debug_options (adf);
+               }
+       }
+
        cout << PROGRAM_NAME
             << VERSIONSTRING
             << _(" (built using ")