Solution breakpoint debugging in VS2015 failure or error of expression


Title Description: Before adding a breakpoint debugging, but the red circle breakpoint becomes transparent when debug add an exclamation point, it will not stop the implementation of the premises.

The problem encountered several times, how did note several times before, sometimes because copy and paste a piece of code after this, and then click the revocation to the state before the copy, and then save, then re-copied on ok.

The real problem is because of the different source files and the original version. There are two solutions:

A, right at the breakpoint, select "Location", "check" allows the source code is different from the original version;

Second, click on the menu bar "debugging" "" Options and Settings "" "General" "remove" requires the same source files with the original version of the "front of the hook.

Third, the need for expression is the member variables, or else an error will be reported expression.


----------------
Disclaimer: This article is CSDN blogger original article "starxhong", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement. .
Original link: https: //blog.csdn.net/hongxingabc/article/details/51176058

Guess you like

Origin www.cnblogs.com/fanyf/p/11542882.html