Seb0029
Seb0029

Reputation: 79

Visual Studio debugger no longer showing lines of code preceding line of code where crash happens

I while ago when I had a crash in Visual Studio it would show me the lines where the code crashed as well as all the lines before that that called the function containing the line on which the code crashed.

Since a few months and a few updates in Visual Studio, it started showing only the line on which the crash happens. For example, my code is crashing and the debugger has opened the header file and is showing the line in there where the code crashed but it is not showing the lines that call the function in that header. Previously it would show the lines that call the function, starting from the main function of the program in which the header is used. And I could easily workout which part of the main program is making a bad call to the function in the header.

Is there a way to have it show me all the lines like before? I've searched everywhere online and cannot find this.

enter image description here

Upvotes: 0

Views: 563

Answers (1)

Seb0029
Seb0029

Reputation: 79

I was able to find how to display the call stack window: while debugging, in the Debug menu, select Windows > Call Stack.

This shows all the function calls down to the line where the crash happens. Solved the cause of the particular crash straight away by the way.

Upvotes: 1

Related Questions