[lazarus] DDD Graphical Debugger

Stefan Hille stoppok at osibisa.ms.sub.org
Wed Oct 6 13:49:41 EDT 1999


Hi!

On Wed, Oct 06, 1999 at 10:01:51AM -0500, Baeseman, Cliff wrote:
> This would make life very nice...
> 
> I was actually able to step thru code last night using DDD, now that may
> seem like a small thing but I can at least see where the liib code is
> jumping to. I would imagine it would also help other people trying to code
> in our libs to understand what is going on in there. Most of us have a
> pretty good idea but it was a great blessing just to be able to set a
> breakpoint and step code...

As far as I know it's important to start DDD from the directory where the
program to be debugged resides. Don't know if this is typical, but for me
the following works: 

cd working_dir
make 
ddd &

Since I don't keep lazarus ppu's around these will also be in my working
dir after make, but I'm not sure if this makes any difference.
 
> DDD is pretty good with Free Pascal from what I saw last night. 

Although it's a much too slow on my machine I couldn't work without it.

> Of course it
> is using gdb on the back end which could not resolve a variable I was trying
> to place a watch on. If I could just place a watch on something I would be
> off and running.
> 
> A: string
> 
> A := 'hello';

As stated somewhere in the fpc-docs you'll always have to type in variable
names (fpc-variables, not C variables from GTK) in upper case letters. 

bye,

  Stefan

PS: Which version of ddd are you using? My debian 2.1 comes with some
different versions (linked against motif/lesstiff static/dynamic) but not
all of them are stable. The best one for me is statically linked against
motif, the lesstiff version sucks completely.

-- 
---------------------------------------------------------
Stefan Hille          email: stoppok at osibisa.ms.sub.org 
48155 Muenster	      voice: 0251/664695 






More information about the Lazarus mailing list