I'm trying to enable Webgl debugging in NME/openFL, a feature that is hinted at in the html5 target's template. It seems to be connected with compiling in debug mode, but when I add <compilerflag name="-debug" /> to my NMML file, only the WebGLDebugUtils code is enabled, not the webgl-debug.js script tag. This leads to a runtime error during the app's initialization. What do I need to do to enable this feature properly?
Here's the link to the condition in NME: https://code.google.com/p/nekonme/source/browse/templates/default/html5/template/index.html#55
And here it is in openFL: https://github.com/openfl/openfl-html5/blob/master/templates/html5/template/index.html#L55