[GRASSLIST:5640] Re: v.digit debug mode

Eric G. Miller egm2 at jps.net
Sat Feb 22 13:35:01 EST 2003


On Fri, Feb 21, 2003 at 06:21:48PM -0800, Chris Heg wrote:
> I'm trying to work on some issues with v.digit. I see a lot of debugging
> code in the source files that seems to key off of a "DEBUG" environment
> variable. Does anyone know what I have to do to enable debugging besides
> setting "DEBUG=TRUE; export DEBUG" ? It tried that but can't see any effect.

It's a compile time variable:

$ cd src/mapdev/v.digit
$ editor Gmakefile
<change>
EXTRA_CFLAGS    =  $(DIGITFLAGS)  $(USE_FTIME) $(INCTRANS)
<to>
EXTRA_CFLAGS    =  $(DIGITFLAGS)  $(USE_FTIME) $(INCTRANS) -DDEBUG=1
<done>
$ rm -rf OBJ.<architechute>
$ gmake5

No guarantee that the debugging code doesn't cause erroneous
execution...

-- 
echo ">gra.fcw at 2ztr< eryyvZ .T pveR" | rot13 | reverse




More information about the grass-user mailing list