4

I'm using Delphi XE2. And I would like to able to log data using the Delphi Breakpoints. Ex: Format('%s:%d', [Name, Id])

When I try this, it doesn't recognizes Format. I didn't found any details on Delphi Help on how to do it.

The big benefit of using Delphi Breakpoints without break option, is that I don't need to recompile to log more data, over the traditional code logging. Since, this data its very temporary, and I'm using only to locate a bug, and once its found its no longer needed. This real-time facility its very helpful, if allows me to log more than one variable.

Code Rage
  • 555
  • 3
  • 9

1 Answers1

4

Just use:

Name + ':' + IntToStr(Id)
da-soft
  • 7,670
  • 28
  • 36
  • Thanks, it worked. Is there any place where I can find a list of which functions work, and which don't? – Code Rage Apr 23 '12 at 08:17
  • Normally all functions, which does not have open array params, which are not inlined, or eliminated by linker. – da-soft Jul 27 '20 at 16:40