Call Stack inspection
It can be hard to visualize your code, especially at different points of execution. With a debugger, you can pause your application and view the current call stack.
The call stack is the textual display of the current state of the stack in your application. You normally see it when your application is paused or in a crash report.
When paused in a debugger, the call stack is interactive. You can navigate up and down and inspect the state at each level. For this to be accurate and comprehensive, you’ll need to build with symbols and have compiler optimizations disabled. For web developers, you’ll need access to source maps.
If you’re working with multiple threads, you can switch between threads to see their individual call stack. If you’re connected to several processes, you can switch those to see their threads and subsequent call stacks.
The call stack is a key piece of the debugger toolkit, helping to navigate application state and reason about the logic.