Robert Covington wrote: > I need a way to fathom what function is calling any other function > in my program. > Is there enough information known about a function call to know > which function is calling it and to provide a special > Stop _FunctionCallerID > It sure would make debugging my app a lot easier. > Say Fn A calls FN B > A Stop _FunctionCallerID placed anywhere within FN B would provide a > "Called by Fn A" message (or log) > Any further depth able to be provided would also be handy... > So, "Called By Function A : A by G: G by DoDialog > And so on A function does not and cannot know what called it. The GNU debugger is able to keep track of callers by an arcane business of examining return addresses on the stack. In the FBtoC Help, see 'Running under Xcode Debugger', where there is a picture that includes a call stack. A quick and dirty way to see a call stack is to insert poke 0, 0 into the offending function, and examine the crash report. Robert P.