Difference between revisions of "Useful Tips for Debugging"

From Immersive Visualization Lab Wiki
Jump to: navigation, search
(Created page with "* If you suspect an error in your OpenGL code, try using the [http://www.opengl.org/sdk/docs/man/xhtml/glGetError.xml glGetError()] command to find the location of the error, ...")
 

Latest revision as of 18:31, 11 June 2013

  • If you suspect an error in your OpenGL code, try using the glGetError() command to find the location of the error, then gluErrorString() to parse the error message.
  • There is a web page on common OpenGL mistakes.
  • For debugging under Linux, the command line debugger gdb and the GUI wrapper around it ddd are among the most popular debugging tools, both of which allow tracing through C++ code step by step and displaying the content of variables.
  • For network debugging use tcptrack. It shows all established network connections on your machine. Syntax for interface eth0: "tcptrack -i eth0"