Adrian Aichner <aichner(a)ecf.teradyne.com> writes:
> >> I'm not sure I understand Jonathan's remark, but I guess he
> >> is thinking about the callstack, you can display in MS VC++.
>
> Hrvoje> No, I think debug_backtrace() is the C function that
> Hrvoje> spits out the Lisp backtrace. You get it by calling
> Hrvoje> `debug_backtrace()' from your favorite debugger, and
> Hrvoje> capturing the resulting output.
>
> Yep, Hrvoje, I found it in src\print.c. Now I have to figure out
> how to call it from within MickeySoft Developer Studio invoked upon
> the crash.
>
> I would be tahnkful for any advice.
I think the idea is to invoke the function immediately *before* the
crash, not after it. If the crash is happening due to an assert or
something like that, under Unix I'd put a breakpoint on
assert_failed() and invoked debug_backtrace() from there.