Skip to content

Debugging Basics: Using the Call Stack

This article is currently in draft form and is not intended for public viewing at this time. If you’re reading this, please tell me how!

Introduction

This article is intended for new developers unfamiliar with the call stack window.

The Call Stack window shows the sequence of method calls which led up to a certain point in your code during debugging. Typically this point is when a breakpoint is triggered or an exception is raised. The call stack window shows you what happened before that event, and puts the event in context.

A Simple Example

Viewing the Call Stack

There are a couple different ways to view the call stack. Each has advantages and disadvantages. The Delphi IDE has a built-in call stack viewer, and there are several third-party tools such as the JEDI Code Library which allow a program to display a call stack at runtime.

Using the Delphi Call Stack Window

You can find the call stack window by using View->Debug Windows->Call Stack. It looks like this:
[Insert picture here.]

Using a Third-Party Debugging Assistant

Post a Comment

Your email is never published nor shared. Required fields are marked *

Bad Behavior has blocked 1846 access attempts in the last 7 days.

Close