From c8286111e0d149adc30687a27e5f52c9c064291a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 9 Sep 2011 00:02:17 +0200 Subject: [PATCH] Clarify `--debug' vs. `--no-debug'. * module/ice-9/command-line.scm (*usage*): Attempt to suggest that `--no-debug' doesn't inhibit debugging support. * doc/ref/guile-invoke.texi (Command-line Options): Make it clear that `--no-debug' doesn't inhibit debugging support. Reported by Manuel Serrano. --- doc/ref/guile-invoke.texi | 6 ++++++ module/ice-9/command-line.scm | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/ref/guile-invoke.texi b/doc/ref/guile-invoke.texi index 9379a8b98..ccb530157 100644 --- a/doc/ref/guile-invoke.texi +++ b/doc/ref/guile-invoke.texi @@ -156,6 +156,12 @@ interactive session. When executing a script with @option{-s} or Do not use the debugging VM engine, even when entering an interactive session. +Note that, despite the name, Guile running with @option{--no-debug} +@emph{does} support the usual debugging facilities, such as printing a +detailed backtrace upon error. The only difference with +@option{--debug} is lack of support for VM hooks and the facilities that +build upon it (see above). + @item -q @cindex init file, not loading @cindex @file{.guile} file, not loading diff --git a/module/ice-9/command-line.scm b/module/ice-9/command-line.scm index e94336a90..706948f58 100644 --- a/module/ice-9/command-line.scm +++ b/module/ice-9/command-line.scm @@ -122,8 +122,8 @@ If FILE begins with `-' the -s switch is mandatory. -e FUNCTION after reading script, apply FUNCTION to command line arguments -ds do -s script at this point - --debug start with debugging evaluator and backtraces - --no-debug start with normal evaluator + --debug start with the \"debugging\" VM engine + --no-debug start with the normal VM engine, which also supports debugging Default is to enable debugging for interactive use, but not for `-s' and `-c'. --auto-compile compile source files automatically