[GRASSLIST:3482] ddd debugger and GRASS

Hi all,

Does anyone know how to use the DDD debugger with GRASS? I used it while compiling a module I wrote, but when I tried to run it on the compiled module I could only read GRASS’s front end,

Thanks

Jaime


Do You Yahoo!?
Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo.
Visíta Yahoo! Noticias.

Jaime Carrera wrote:

Does anyone know how to use the DDD debugger with GRASS? I used it
while compiling a module I wrote, but when I tried to run it on the
compiled module I could only read GRASS's front end,

The "programs" in GRASS' bin directory are (almost) all hard links to
etc/front.end. The real programs are in etc/bin/cmd and etc/bin/inter.
The etc/front.end program just invokes either the cmd or inter
version, depending upon which versions exist and whether any arguments
were supplied.

To debug GRASS modules, specify the path to the program in the
etc/bin/cmd (or inter) directory rather than to the link in the bin
directory.

--
Glynn Clements <glynn.clements@virgin.net>

On Tue, May 25, 2004 at 02:04:10AM +0100, Glynn Clements wrote:

Jaime Carrera wrote:

> Does anyone know how to use the DDD debugger with GRASS? I used it
> while compiling a module I wrote, but when I tried to run it on the
> compiled module I could only read GRASS's front end,

The "programs" in GRASS' bin directory are (almost) all hard links to
etc/front.end. The real programs are in etc/bin/cmd and etc/bin/inter.
The etc/front.end program just invokes either the cmd or inter
version, depending upon which versions exist and whether any arguments
were supplied.

To debug GRASS modules, specify the path to the program in the
etc/bin/cmd (or inter) directory rather than to the link in the bin
directory.

You may have a look here (in 5.3 source code):

documents/debugging.txt

Debugging with 'ddd' is really "easy".

Markus