i found there are two shader debugger:
the first one :

https://developer.nvidia.com/nv-shader-debugger
the second one:
pix for windows
http://www.chromium.org/developers/how-tos/debugging/pix-for-windows
they can debug pixel shader code like cpu code, i want to know, what is the principle of this, if i want to implement a shader debugger, where is the start point?