Recent

Author Topic: Print variable value during execution?  (Read 22213 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8799
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Print variable value during execution?
« Reply #15 on: March 31, 2011, 05:56:19 am »
Quote
Really you guys can debug within Lazarus and see more than simple local variable values?

When I debug a program, I can not see even simple things like Edit1.Text or Memo1.Lines[1] , it just gives error messages like "Syntax error near .Text" and things like that.
No I can't see contents of properties, BUT I can see the contents of private variables ;) (though this breaks the encapsulation, but it's required).

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2645
Re: Print variable value during execution?
« Reply #16 on: April 01, 2011, 10:46:34 am »
Usually I need the contents of Edit1.Text to do some processing. For efficiency reasons I put it in a variable first and then do my processing. So I seldom need to know the contents of Edit1.Text
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Guillermo

  • New Member
  • *
  • Posts: 19
Re: Print variable value during execution?
« Reply #17 on: April 06, 2011, 05:46:28 am »
I have had same problems with debugger, so I use the "brute force" method (as I used in Turbo3): drop a memo in the form, and print the desired values...
I really don't know how to use the debugger, is there any tutorial?

Gracias (Thanks).
Guillermo.
Guillermo.

 

TinyPortal © 2005-2018