The WEBGL_debug_shaders.getTranslatedShaderSource() method is part of the WebGL API and allows you to debug a translated shader.
WEBGL_debug_shaders.getTranslatedShaderSource()