1
0
Fork 0
cl-sites/guile.html_node/Debug-Options.html

116 lines
6 KiB
HTML
Raw Normal View History

2024-12-17 12:49:28 +01:00
<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This manual documents Guile version 3.0.10.
Copyright (C) 1996-1997, 2000-2005, 2009-2023 Free Software Foundation,
Inc.
Copyright (C) 2021 Maxime Devos
Copyright (C) 2024 Tomas Volf
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
copy of the license is included in the section entitled "GNU Free
Documentation License." -->
<title>Debug Options (Guile Reference Manual)</title>
<meta name="description" content="Debug Options (Guile Reference Manual)">
<meta name="keywords" content="Debug Options (Guile Reference Manual)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content=".texi2any-real">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="index.html" rel="start" title="Top">
<link href="Concept-Index.html" rel="index" title="Concept Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Programmatic-Error-Handling.html" rel="up" title="Programmatic Error Handling">
<link href="Stack-Overflow.html" rel="prev" title="Stack Overflow">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
div.example {margin-left: 3.2em}
span:hover a.copiable-link {visibility: visible}
strong.def-name {font-family: monospace; font-weight: bold; font-size: larger}
-->
</style>
<link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/gnulib/manual.css">
</head>
<body lang="en">
<div class="subsubsection-level-extent" id="Debug-Options">
<div class="nav-panel">
<p>
Previous: <a href="Stack-Overflow.html" accesskey="p" rel="prev">Stack Overflow</a>, Up: <a href="Programmatic-Error-Handling.html" accesskey="u" rel="up">Programmatic Error Handling</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsubsection" id="Debug-options"><span>6.26.3.5 Debug options<a class="copiable-link" href="#Debug-options"> &para;</a></span></h4>
<p>The behavior of the <code class="code">backtrace</code> procedure and of the default error
handler can be parameterized via the debug options.
</p>
<a class="index-entry-id" id="index-options-_002d-debug"></a>
<a class="index-entry-id" id="index-debug-options"></a>
<dl class="first-deffn">
<dt class="deffn" id="index-debug_002doptions"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">debug-options</strong> <var class="def-var-arguments">[setting]</var><a class="copiable-link" href="#index-debug_002doptions"> &para;</a></span></dt>
<dd><p>Display the current settings of the debug options. If <var class="var">setting</var> is
omitted, only a short form of the current read options is printed.
Otherwise if <var class="var">setting</var> is the symbol <code class="code">help</code>, a complete options
description is displayed.
</p></dd></dl>
<p>The set of available options, and their default values, may be had by
invoking <code class="code">debug-options</code> at the prompt.
</p>
<div class="example smallexample">
<pre class="example-preformatted">scheme@(guile-user)&gt;
backwards no Display backtrace in anti-chronological order.
width 79 Maximal width of backtrace.
depth 20 Maximal length of printed backtrace.
backtrace yes Show backtrace on error.
stack 1048576 Stack size limit (measured in words;
0 = no check).
show-file-name #t Show file names and line numbers in backtraces
when not `#f'. A value of `base' displays only
base names, while `#t' displays full names.
warn-deprecated no Warn when deprecated features are used.
</pre></div>
<p>The boolean options may be toggled with <code class="code">debug-enable</code> and
<code class="code">debug-disable</code>. The non-boolean options must be set using
<code class="code">debug-set!</code>.
</p>
<dl class="first-deffn">
<dt class="deffn" id="index-debug_002denable"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">debug-enable</strong> <var class="def-var-arguments">option-name</var><a class="copiable-link" href="#index-debug_002denable"> &para;</a></span></dt>
<dt class="deffnx def-cmd-deffn" id="index-debug_002ddisable"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">debug-disable</strong> <var class="def-var-arguments">option-name</var><a class="copiable-link" href="#index-debug_002ddisable"> &para;</a></span></dt>
<dt class="deffnx def-cmd-deffn" id="index-debug_002dset_0021"><span class="category-def">Scheme Syntax: </span><span><strong class="def-name">debug-set!</strong> <var class="def-var-arguments">option-name value</var><a class="copiable-link" href="#index-debug_002dset_0021"> &para;</a></span></dt>
<dd><p>Modify the debug options. <code class="code">debug-enable</code> should be used with boolean
options and switches them on, <code class="code">debug-disable</code> switches them off.
</p>
<p><code class="code">debug-set!</code> can be used to set an option to a specific value. Due
to historical oddities, it is a macro that expects an unquoted option
name.
</p></dd></dl>
</div>
<hr>
<div class="nav-panel">
<p>
Previous: <a href="Stack-Overflow.html">Stack Overflow</a>, Up: <a href="Programmatic-Error-Handling.html">Programmatic Error Handling</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>