[lazarus] DDD Graphical Debugger
Curtis White
osiriz at teleport.com
Wed Oct 6 23:49:50 EDT 1999
Cliff,
I was playing with DDD tonight and this is great. I sure wish I would have known
about this a long time ago. It really makes it easy to use GDB.
You need to have the Data Window and the GDB Console enabled from the View menu.
When you want to set a watch variable, you can enter "watch SHELLO" (without
the quotes) in the bottom window. It must be in all uppercase. This sets GDB to
watch that variable. Then when you step through, it stops everytime that
variable is changed. I tried it on your program below and it worked really well.
You can also display the variable by entering "graph display SHELLO" in the
bottom window. This will setup a display in the top data window so you can stop
and see the value of the variable at any point.
This will be a huge help in debugging the code. I highly recommend for anyone
using Linux to use DDD for debugging your FPC code.
Curtis
On 06-Oct-99 Baeseman, Cliff wrote:
> Stephan
>
>
> In the example below what do I tell DDD in order to put a watch on sHello...
>
> say for instance I break on writeln and I wish to know the value of sHello..
>
> How about for a class??
>
> You are correct I have to start ddd from the same directory as my source or
> it will look in the user home dir for the source.
>
>
>
> program hello
>
> var
> sHello : string;
>
> begin
> sHello := 'Hello World';
> writeln(sHello);
> end.
>
More information about the Lazarus
mailing list