[GRASS-dev] nviz debugging

Martin Landa landa.martin at gmail.com
Thu May 29 16:57:54 EDT 2008


Hi,

> You can't invoke gdb directly on "nviz" or $GISBASE/bin/nviz, as that
> is a shell script. But it's a trivial script which essentially just does:
>
> $GISBASE/etc/nviz2.2/nviz -f $GISBASE/etc/nviz2.2/scripts/nviz2.2_script ${1+"$@"}
>
> You can debug the $GISBASE/etc/nviz2.2/nviz binary as with any other
> program, i.e.:
>
>        $ gdb $GISBASE/etc/nviz2.2/nviz
>        > run -f $GISBASE/etc/nviz2.2/scripts/nviz2.2_script <any args>
>
> Or, if you don't need to debug the startup, you can start NVIZ then
> "attach" to the process, as suggested by Markus.

thanks Glynn, I have updated doc/debugging.txt accordingly.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-dev mailing list