Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't use data breakpoint C++, Visual Studio 2013

Tags:

I set debugger to Native Only, solution configurations is Debug but New Data Breakpoint... option is still greyed out and I can't use it. Can anyone prompt me what else I need to change ?

like image 422
Al Bundy Avatar asked Jun 15 '14 13:06

Al Bundy


People also ask

Why are my breakpoints not working?

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 set a data 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

  1. Make sure active project debugger setting is "Native Only".
  2. Start the debugging with another ordinary breakpoint, then you can see "New Data Breakpoint" is clickable. (In other words, you must be inside debug mode to be able to create a data break point.)

Hope this helps..

like image 97
Giovanni Gökhan Simsek Avatar answered Sep 20 '22 16:09

Giovanni Gökhan Simsek