3 <TITLE>Debugging Tips</TITLE>
5 <link rel="stylesheet" type="text/css" href="mesa.css"></head>
9 <H1>Debugging Tips</H1>
12 Normally Mesa (and OpenGL) records but does not notify the user of
13 errors. It is up to the application to call
14 <code>glGetError</code> to check for errors. Mesa supports an
15 environment variable, MESA_DEBUG, to help with debugging. If
16 MESA_DEBUG is defined, a message will be printed to stdout whenever
21 More extensive error checking is done when Mesa is compiled with the
22 DEBUG symbol defined. You'll have to edit the Make-config file and
23 add -DDEBUG to the CFLAGS line for your system configuration. You may
24 also want to replace any optimization flags with the -g flag so you can
25 use your debugger. After you've edited Make-config type 'make clean'
29 In your debugger you can set a breakpoint in _mesa_error() to trap Mesa
33 There is a display list printing/debugging facility. See the end of
34 src/dlist.c for details.