1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998)
originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Debugging Support</TITLE>
<META NAME="description" CONTENT="Debugging Support">
<META NAME="keywords" CONTENT="tpman">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="tpman.css">
<LINK REL="previous" HREF="node20.html">
<LINK REL="up" HREF="node15.html">
<LINK REL="next" HREF="node22.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html381"
HREF="node22.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html377"
HREF="node15.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html373"
HREF="node20.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A>
<A NAME="tex2html379"
HREF="node4.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="/usr/share/latex2html/icons/contents.png"></A>
<A NAME="tex2html380"
HREF="node58.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
SRC="/usr/share/latex2html/icons/index.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html382"
HREF="node22.html">Running It</A>
<B> Up:</B> <A NAME="tex2html378"
HREF="node15.html">Output</A>
<B> Previous:</B> <A NAME="tex2html374"
HREF="node20.html">Overview of Generated Names</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION00076000000000000000">
Debugging Support</A>
</H2>
The generated code is organised in such a way that a symbolic debugger will be a useful
tool for exploring data structures.
Furthermore, by default the code is instrumented with <I>assert</I><A NAME="1438"> </A> statements
that check e.g. for references through nil pointers.
In the same way as the Unix <I>assert</I>, compiling with -DNDEBUG<A NAME="967"> </A><A NAME="968"> </A> effectively
deletes the asserts from the code.
(There are other macros whose redefinition can influence the behaviour of <I>assert</I>.)
<P>
A typical run time error message is `no default action defined'.
This occurs when a <I>with-</I> or <I>foreach-with-statement</I> does not cover all cases,
as explained in Section <A HREF="node11.html#func-def">1.5</A>.
One of the situations in which this can occur is when such a statement is applied
to an argument of the wrong phylum.
Running <I>lint</I> should have uncovered this, see Section <A HREF="node25.html#sec:lint">3.3</A>.
<P>
<BR><HR>
<ADDRESS>
<I></I>
<BR><I>2000-04-17</I>
</ADDRESS>
</BODY>
</HTML>
|