Event<T> hides Call Stack information when stepping inside the eventhandler

Issue #356 resolved
Deeem2031 created an issue

When using Event<T> the visible call stack at the depth of the invoking procedure gets obstructed by InvokeEventHandlerStub. In my example there should be a line “Project41.TC.InvokeEvent”

I don’t know if this is a problem with Spring or the debugger itself but this does impact debuggability, even when you add $D- to Spring.inc

Reproducible by loading the attached project, adding a breakpoint inside TX.EventHandler and running.

This does apply to master and develop. Tested with Delphi 10.4.1 and 10.4.2.

Comments (4)

  1. Stefan Glienke repo owner
    • changed status to open

    It’s mostly a debugger inability to properly walk the stack when there are certain combination of instructions - but I can look into tweaking the assembler code a bit to work properly. This call stack indeed looks pretty bad.

  2. Log in to comment