GL Debug Output
Debug Output is an OpenGL feature that makes Error Checking from functions easier.
In order to get more information about Debug Output, you can read the main opengl wiki page
The difference with plain OpenGL is that in Jogl, if you want to enable Debug Output, you have to do it at the begin, before the context gets created.
There are two tests in jogl-demos, that show how you can achieve this: