A couple of things are unclear to me..
The javadocs (
https://jogamp.org/deployment/v2.3.2/javadoc/jogl/javadoc/) say you can enable the GLDebugOutput with glContext.enableGLDebugMessage(true) or glContext.setContextCreationFlags(CTX_OPTION_DEBUG),
before context creation, that in my case happens whan I add the glEventListener to my glWindow.
While glContext.setContextCreationFlags(CTX_OPTION_DEBUG) works, glContext.enableGLDebugMessage(true) doesn't because obviously glContext is, at that time, still null
But in this sample
https://github.com/sgothel/jogl/blob/b3ecc88efca2a2f969e1e5a375086148821ee3c5/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLDebug01NEWT.java#L75You just set the flags and then assert if != null.. how can it be? That context should be still null..
Moreover, in the other example,
https://github.com/sgothel/jogl/blob/b3ecc88efca2a2f969e1e5a375086148821ee3c5/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLDebug00NEWT.java#L103you are calling enableGLDebugMessage
after the context creation..! again, how can that work?