Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 c++ breakpoint will not be hit

Hi I have a c++ app in visual studio 2015. My .exe's pdb wont work and it cant hit breakpoints. when I open the modules window, the status says Symbol format not supported. my debug file flag is /ZI in the projects settings. I've tried deleting the object and bin folders. When I create a new project, it hits the breakpoint. Any ideas?

like image 822
shady Avatar asked Jul 13 '16 17:07

shady


People also ask

Why are my breakpoints not being hit?

If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the code by default. Normally, this problem happens when a source file is changed, but the source code wasn't rebuilt. To fix this issue, rebuild the project.

How do I fix breakpoint in Visual Studio?

To set a breakpoint in source code: Click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint. The breakpoint appears as a red dot in the left margin.


1 Answers

I had use managed compatibility mode and use native compatibility mode both checked. Unchecking use native compatibility mode fixed it.

like image 154
shady Avatar answered Oct 17 '22 00:10

shady