Before applying the debug viewer, here's something else to try. Please download this:

http://server.conitec.net/down/include.zip

It contains a new r.h include file. Please replace the old one with it and try again. Tell me how this works.