Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-12

Breakpoint

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kjow

Hi all,

I need to read a variable value with a breakpoint. I use gdb. I stopped my application with a breakpoint and now I need to read a value of a variable, but I don't know how.

Thank you!
Kjow

Reply by email

Dave Coventry
to Kjow

Me! Me! I can answer this one! :)

Kjow wrote 5 lines
Hi all, I need to read a variable value with a breakpoint. I use gdb. I stopped my application with a breakpoint and now I need to read a value of a variable, but I don't know how.

Place the cursor over the variable's name. If the variable is accessible at the time (i.e. if it's a global variable or a variable that the compiler's optimising hasn't overwritten, the value of the variable will show in a box.

Alternately, you can use the watches. View->Debug Windows->Watches. Right click to add your variable(s).

Reply by email

Max Vlasov
to Dave Coventry
Dave Coventry wrote 18 lines
Me! Me! I can answer this one! :) On 6 December 2010 11:03, Kjow wrote: > Hi all, > > I need to read a variable value with a breakpoint. I use gdb. > I stopped my application with a breakpoint and now I need to read a > value of a variable, but I don't know how. Place the cursor over the variable's name. If the variable is accessible at the time (i.e. if it's a global variable or a variable that the compiler's optimising hasn't overwritten, the value of the variable will show in a box. Alternately, you can use the watches. View->Debug Windows->Watches. Right click to add your variable(s).

To the excellent reply of Dave I'd added only Run->Evaluate/Modify window when you placed the caret at the variable, also accessible by Ctrl-F4 with classic Delphi keyset (possibly the same in others, anyway you can the the key assigned in the menu item)

Max Vlasov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101206/b698c2f8/attachment.html>

Reply by email

Kjow
to Dave Coventry: Me! Me! I can answer this one! :) Place the cursor over the variable's name. If the…

2010/12/6 Dave Coventry :

Show quoted text 8 lines
Me! Me! I can answer this one! :) Place the cursor over the variable's name. If the variable is accessible at the time (i.e. if it's a global variable or a variable that the compiler's optimising hasn't overwritten, the value of the variable will show in a box. Alternately, you can use the watches. View->Debug Windows->Watches. Right click to add your variable(s).

2010/12/6 Max Vlasov :

Show quoted text 7 lines
On Mon, Dec 6, 2010 at 12:17 PM, Dave Coventry wrote: To the excellent reply of Dave I'd added only Run->Evaluate/Modify window when you placed the caret at the variable, also accessible by Ctrl-F4 with classic Delphi keyset (possibly the same in others, anyway you can the the key assigned in the menu item) Max Vlasov

Thank you both!
Very appreciated :)

Kjow

Reply by email