what's the best way to debug values with a shader? For example , let's say my vertex shader only had a simple line gl_Position=gl_Vertex;

And I wanted to see what the value was in gl_Position

I am using opengl , Visual Studio 8, Windows OS.

There doesn't seem to be a good debugger out there and everyone mentions some sort of coding hack. Can someone give me a good example of how to acheive this using a coding hack/technique (preferably code examples) so i can see the values in shader variables?

It's really hard to debug complex shaders without knowing what values you are seeing per line.