Could I have a code snippet to obtain the method call stack, maybe in an array, for debugging purposes.
I intend to dump the stack when an error is intercepted.
If Main, calls Method1, which calls Method2,
I'd like to have some kind of structure which holds:
as its contents.
I'd be extra happy if I could also have some structure holding all current local variables. Wow - that would be helpful as something to write out to an error log for inspection after failure.