I have decalred
type TProcedure = procedure(const messageText : String) of object;
and later have a variable of that type decodeProcedure : TProcedure; which gets assigned in various places.
When I am stopped on a breakpint, how can I see which procedure the variablle is pointing to?
If I Debug/evaluate or add watch I get an error E2035 Not enough actual parameters
(Delphi XE 2)
You can evaluate the address of the decodeProcedure method using the @ operator and adding that expression to the watch list windows, to see to which procedure points you can use the
local variableswindow.try this code
And this a sample IDE screenshoot
As you see the
local variableswindow shows which the decodeprocedure points to theTFooClass.Barmethod.UPDATE
You can also add the
Selfexpression to the watch list to get the same results