From what I can see there's no menu options to view a call-stack like I'm used to seeing in debuggers for other languages. Is this a feature that simply didn't exist in this (old) version of Delphi? Is there another way I can search for references or detect what other code within the project uses a particular function if viewing a call-stack in the debugger isn't possible?
View the call stack while in the debugger While debugging, in the Debug menu, select Windows > Call Stack or press ctrl + alt + C . A yellow arrow identifies the stack frame where the execution pointer is currently located.
The call stack is a list of all the active functions that have been called to get to the current point of execution. The call stack includes an entry for each function called, as well as which line of code will be returned to when the function returns.
Debugging delphi source files You need to go to "project->options->compiler" on this tab you need to check the "use debug DCUs". After that you need to build your project again and you can run your application. From now on breakpoints also stop in Delphi source files.
Call stack is very useful when Inspecting the program state. You can see the function calls that are currently on the stack, change the context in which you are debugging to another stack frame on the call stack and inspect the program state in the different frames.
If it's Delphi 7, start debugging your application and then use the View/Debug Windows/Call stack menu.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With