The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,262 other subscribers

Debugging RTL/VCL Code with CodeSite – Dave’s Development Blog

Posted by jpluimers on 2019/04/17

This is so cool! [WayBackDebugging RTL/VCL Code with CodeSite – Dave’s Development Blog.

It comes down to performing CodeSite.Send(...) calls as evaluation expressions in non-breaking breakpoints.

Ensure you have the CodeSite.Logging unit in your uses lists and you’re good to go.

Thanks David for pointing me to this!

This is even more useful than the breakpoint Log Message itself (which is only a string) or plain Eval Expression (which puts just one item into the Delphi event log) despite them being there since Delphi <= 5:[WayBackDebugging code in Delphi XE – Stack Overflow.

–jeroen

via: [WayBack] Debugging RTL/VCL Code with CodeSite – David Hoyle – Google+

 

2 Responses to “Debugging RTL/VCL Code with CodeSite – Dave’s Development Blog”

  1. dummzeuch said

    For a string, that’s not really rocket science, but this can also be done for other data types. All you need is a function that takes these as parameters and returns something the debugger accepts (e.g. an integer). This function can do anything, not just write to CodeSite, it can potentially dump a whole table of a database. I blogged about such a helper function in 2017:

    Debugging helper for TDataSet

  2. xepol said

    Neat trick…

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.