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