Useful Tips for Debugging

From Immersive Visualization Lab Wiki
Jump to: navigation, search
  • 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"