Debugging RTL/VCL Code with CodeSite – Dave’s Development Blog
Posted by jpluimers on 2019/04/17
This is so cool! [WayBack] Debugging 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:[WayBack] Debugging code in Delphi XE – Stack Overflow.
–jeroen
via: [WayBack] Debugging RTL/VCL Code with CodeSite – David Hoyle – Google+
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:
xepol said
Neat trick…