[GRASS-dev] Re: [GRASS-user] g.gisenv DEBUG broken!
landa.martin at gmail.com
Wed Oct 18 15:47:50 EDT 2006
is there anybody who has *no* problem with g.gisenv variable DEBUG?? I
have, I was trying to find out why... I have found a strange problem
buf[i] = '\0';
G_debug ( 4, "G_getl2: ->%s<-", buf ); <-----------
// G_debug helps
After reading the first line in read_env() [env.c], the function
G_debug () is called, it cause that (see debug.c) grass_debug_level
variable is set to 0. As a result no debug message will be displayed
regardless to DEBUG value.
I don't know why, just trying to find out why no debug messages are
not displayed any more...
2006/10/11, Hamish <hamish_nospam at yahoo.com>:
> > > > .... no debug message, should be(?)
> > > 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).
> > we discussed this with soeren (huhabla) on irc while ago with the
> > result, that if the module is runing in gdb environment, debuging
> > works
> > i do not know why, but it was so :-/
> it works for this:
> g.mremove foo*
> and this:
> v.db.addtable rand_pts
> but not for this:
> echo "1|1" | v.in.ascii out=foo
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *
More information about the grass-dev