1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00

* script.c (scm_compile_shell_switches): Added --debug option.

This commit is contained in:
Mikael Djurfeldt 2000-04-16 14:22:22 +00:00
parent a0128ebefa
commit d150e49165

View file

@ -379,6 +379,7 @@ scm_shell_usage (int fatal, char *message)
" -e FUNCTION after reading script, apply FUNCTION to\n"
" command line arguments\n"
" -ds do -s script at this point\n"
" --debug start with debugging evaluator and backtraces\n"
" -q inhibit loading of user init file\n"
" --emacs enable Emacs protocol (experimental)\n"
" -h, --help display this help and exit\n"
@ -525,6 +526,13 @@ scm_compile_shell_switches (int argc, char **argv)
tail);
}
else if (! strcmp (argv[i], "--debug")) /* debug eval + backtraces */
{
SCM_DEVAL_P = 1;
SCM_BACKTRACE_P = 1;
SCM_RESET_DEBUG_MODE;
}
else if (! strcmp (argv[i], "--emacs")) /* use emacs protocol */
use_emacs_interface = 1;