3.9 Using an integrated debugger: The call stack

주홍영·2022년 3월 11일
0

Learncpp.com

목록 보기
46/199

https://www.learncpp.com/cpp-tutorial/using-an-integrated-debugger-the-call-stack/

이번 섹션에서는 call stack에 대해서 다룬다

The call stack is a list of all the active functions that have been called to get to the current point of execution.

function이 새로 불리면 stack에 쌓이고 caller에게 값을 반환하면
제거되며 stack에 함수가 어떻게 쌓이고 어디서부터 시작된 것인지 볼 수 있다
이러한 call stack을 활용해 의도한 분기대로 작동하는지 등 디버깅에 활용할 수 있따

For Visual Studio users

Debug menu > Windows > Call Stack
단, debug session에 있어야지 활성화시킬 수 있는 기능이다

profile
청룡동거주민

0개의 댓글