[Gd-chatter] r11133 - trunk/libraries/network/koala/sources/koala

cgay at gwydiondylan.org cgay at gwydiondylan.org
Sun Jan 14 06:48:28 CET 2007


Author: cgay
Date: Sun Jan 14 06:48:26 2007
New Revision: 11133

Modified:
   trunk/libraries/network/koala/sources/koala/koala-main.dylan
   trunk/libraries/network/koala/sources/koala/variables.dylan
Log:
job: koala
add --debug command-line option


Modified: trunk/libraries/network/koala/sources/koala/koala-main.dylan
==============================================================================
--- trunk/libraries/network/koala/sources/koala/koala-main.dylan	(original)
+++ trunk/libraries/network/koala/sources/koala/koala-main.dylan	Sun Jan 14 06:48:26 2007
@@ -32,6 +32,11 @@
                             description: "Display this help message",
                             long-options: #("help"),
                             short-options: #("h"));
+  add-option-parser-by-type(*argument-list-parser*,
+                            <simple-option-parser>,
+                            description: "Enable debugging.  Causes Koala to not handle "
+                                         "most errors during request handling.",
+                            long-options: #("debug"));
 
   //init-server();
 end;
@@ -54,6 +59,9 @@
                    description: desc);
     exit-application(0);
   else
+    if (option-value-by-long-name(parser, "debug"))
+      *debugging-server* := #t;
+    end;
     start-server(config-file: option-value-by-long-name(parser, "config"));
   end;
 end function koala-main;

Modified: trunk/libraries/network/koala/sources/koala/variables.dylan
==============================================================================
--- trunk/libraries/network/koala/sources/koala/variables.dylan	(original)
+++ trunk/libraries/network/koala/sources/koala/variables.dylan	Sun Jan 14 06:48:26 2007
@@ -10,8 +10,8 @@
 // Whether the server should run in debug mode or not.  If this is true then
 // errors encountered while servicing HTTP requests will not be handled by the
 // server itself.  Normally the server will handle them and return an "internal
-// server error" response.  Setting this to true is the recommended way to
-// debug your Dylan Server Pages.
+// server error" response.  A good way to debug Dylan Server Pages.  Can be
+// enabled via the --debug command-line option.
 define variable *debugging-server* :: <boolean> = #f;
 
 // The top of the directory tree under which the server's configuration, error,



More information about the chatter mailing list