delphi - Get the call stack from EurekaLog at any time -
there many posts on getting call stack exception handling, , have eurekalog handling that, want able stack @ point during runtime, can if put breakpoint in ide.
an event somewhere in legacy code causing function execute doing it's not supposed do. while can see debug output name of function, can't tell called without stack trace. it's not exception , don't want raise exception in function eurekalog can fire.
is there way call stack without exception?
you not need raise exception stack trace. call eurekalog's gettracer()
function teurekabasestacklist
object, , call build()
method stack trace. here example provided in eurekalog's documentation:
var callstack: teurekabasestacklist; begin callstack := gettracer(tracerwindows); try // build current call stack including current execution point callstack.build(callstack.getcurrentinstruction); // ... use callstack somehow freeandnil(callstack); end; end;
Comments
Post a Comment