[GRASS-dev] Re: [GRASS-user] g.gisenv DEBUG broken!

Hamish hamish_nospam at yahoo.com
Wed Oct 11 01:30:50 EDT 2006


[moved to dev list]

> Sorry, a wrong example, trying again -- GRASS *gisenv* variable DEBUG:
> 
> g.gisenv set=DEBUG=5
> g.gisenv get=DEBUG
> 5
> 
> g.remove x
> Remove <x>
> WARNING: <x> nothing removed
> 
> .... no debug message, should be(?)
> 
> grep G_debug general/manage/lib/do_remove.c
> G_debug (1, "%s: %s", list[n].desc[i],_("missing"));
> G_debug (1, "%s: %s", list[n].desc[i],_("removed"));
> G_debug (1, "%s: %s", colr2, _("missing"));
> G_debug (1, "%s: %s", colr2, _("removed"));


odd, same here.

g.gisenv set="DEBUG=5"
echo "1|1" | v.in.ascii out=foo

no debug messages!


It seems that  lstr = G__getenv( "DEBUG" );  in lib/gis/debug.c
fails for some reason (lstr gets set to NULL).


???

Hamish




More information about the grass-dev mailing list