[GRASSLIST:1615] Re: G_write_colors()

Markus Neteler neteler at itc.it
Fri Oct 31 04:31:25 EST 2003


On Thu, Oct 30, 2003 at 10:57:50AM +0000, Glynn Clements wrote:
> 
> Massimiliano Cannata wrote:
> 
> > I had done in that way becouse i thougth i had segmantation falult caused by
> > struct Colors *colr while the problem was a pointer conflict with a char *.
> > I had a question about programming in GRASS:
> > 
> > how can be done a debug of GRASS command in linux environment like
> > is done for generic C programs?
> 
> GRASS programs can be debugged with gdb like any other program. 
> However, you need to run the program in etc/bin/cmd or etc/bin/inter,
> not the one in bin (most of the entries in that directory are actually
> links to etc/front.end; that program just runs the corresponding
> program from either etc/bin/cmd or etc/bin/inter).

Debugging: hints are collected in documents/debugging.txt in the source
code. See also here:
http://grass.itc.it/grassdevel.html#compile

Markus Neteler




More information about the grass-user mailing list