During Delphi debugging, you can press [Ctrl + F7] to bring up the [Evaluate/Modify] window.
In this window, I can assign a [New Value] to a variable. This [New Value] can be either a concrete value (like 5) or a value returned from a function (e.g., GetVal()). Naturally, this means you can also execute a [Procedure] in the [New Value] window, such as SqlToTxtFile().
When debugging, I sometimes need to output complex SQL queries to a .txt file and open it, which proves extremely convenient for debugging purposes.
I've noticed Lazarus has a similar feature, but with one key difference: in its [New Value] field, you can only assign concrete values to variables (like 5) — you cannot call functions or procedures. Are there any alternative approaches to achieve this in Lazarus? Thank you.