There are many posts on SO about getting the call stack for exception handling, and we have EurekaLog for handling that, but I really want to be able to get the stack at any point during runtime, just as you can if you put a breakpoint in the IDE.
An event somewhere in the legacy code is causing a function to execute that is doing something it's not supposed to do. While we can see from the debug output the name of the function, we can't tell what actually called it without the stack trace. It's not an exception and we don't want to raise an exception in that function just so EurekaLog can fire.
Is there a way to get the call stack without any exception?