I was just wandering if it is possible to display a variable defined in a vertex or fragment shader and display it in the console like you would do in Java using System.out.
Just that I am finding it hard to debug shaders when I currently cant see what some of the variables are set to.
The short answer is no, there's no way to print out variables.
That's not to say that others haven't developed tools to aid this process... I haven't used it but I've seen it linked from opengl.org http://www.vis.uni-stuttgart.de/glsldevil/