Recent

Author Topic: While stopped at a breakpoint, can I get the output of TObject.ToString?  (Read 911 times)

sighless

  • New member
  • *
  • Posts: 9
I'd like to set overrides for TObject.ToString on my objects that would help me during debugging, but I'm not sure if there is any way to actually view what would be output without stopping, putting in code to print the output of ToString, then recompiling.  Is there a way to do this?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Unfortunately not.

The debugger can not yet call any functions in the debugged exe.

You either can have your app store the date in a variable, that you can watch.

Or your can use writeln/debugln https://wiki.lazarus.freepascal.org/LazLogger
And compile with console -WC


 

TinyPortal © 2005-2018