r.mapcalc debugger?

Hi,
  I have a rather lengthy r.mapcalc script I am trying to debug.
unfortunately the only message i get from mapcalc is rather uninformative.
It says you have confused me. Does a r.mapcalc debugger exist, and if so
where?

              -BRad Cadle

bcadle@helium.gas.uug.arizona.edu (Brad J Cadle) wrote:

Hi,
      I have a rather lengthy r.mapcalc script I am trying to debug.
unfortunately the only message i get from mapcalc is rather uninformative.
It says you have confused me. Does a r.mapcalc debugger exist, and if so
where?

                                                      -BRad Cadle

I see that in its main.c file there is an #ifdef DEBUG - you could
toggle that on and recompile.