Portal:OpenGL Concepts/Debugging

From OpenGL Wiki
< Portal:OpenGL Concepts
Revision as of 21:01, 1 March 2013 by Alfonse (talk | contribs) (Undo revision 9029 by Alfonse (talk))
Jump to navigation Jump to search

Debugging an OpenGL application can be difficult. But OpenGL does provide ways to make debugging more reasonable.

OpenGL requires its functions to check their parameters for mistakes or inconsistencies, and emit errors when this occurs. Many other aspects of function calls are checked, to make sure that the current context state matches with what the system expects. If it does not, other errors are emitted.

Because error checking is a very manual process, many OpenGL implementations provide access to Debug Output. This functionality is a powerful mechanism for testing against these kinds of errors.

These mechanisms only test malformed use of the API; there are many things that can go wrong which are not checked for. For these, there are a number of Debugging Tools available to help track down various issues.