Original link: http://www.acejoy.com/thread-1342-1-1.html
After reading the information on the Internet, I laugh and cry. According to a Netizen's comments: "You look at Microsoft's tips, you never know where the problem really happened." "I used to be a believer in MS, but gradually began to oppose it slowly. I think a lot of MS product problems, is completely the idea of confusion or mistakes.
Here are some summaries:
1.
I'm having a strange problem debugging a program in Visual Studio 2005 today.
Is that the breakpoint set in one of the source files is always invalid, prompting that "breakpoints are not currently hit." Source code differs from original version "information
Cleaning up the project, re-compiling the project, and copying the original files will not solve the problem.
"Tools", "Options", "Debug", "require the source file to match the original version" to remove the tick.
In addition, by reformatting the problematic source files can also be resolved, that is, select "Edit"-"advanced"-"format selection" in VS2005.
2, the discovery of formatting is not used-_-!
Add a workaround on the Web: Open the problematic file with Notepad and save it as Unicode encoding to resolve it.
3. Solution:
Analyze the reason, personally think is:
The project generated (that is, the obj folder, which is stored in two versions) is inconsistent with the temporary build (under the Temporary ASP. Net files directory),
Before I used the above aspects cannot solve. After removing the files from the two directories, it's OK.
4, if still not, that is the ultimate solution: Rename the file. If it is a paging file with multiple identical filenames in the same project and the corresponding CS file, the breakpoint is not currently hit. The source code is different from the original version "error, in VS2005 Solution Explorer, right-click the file and rename it to a new file name.
5, rebuild the solution is easy to use
6. There are too many ways to solve this problem online. I'm not going to say much here.
But the online method did not solve my problem, spent a morning time, finally found the problem, I hope to those who are as confused as I have a brother to help.
The error message is also: "The breakpoint is not currently being hit." Source code is different from the original version ", the cause of the error, my a project is the startup project, b project and a project in the same solution, and a project needs to invoke the B project, but the B project code changes after the breakpoint debugging will not work, prompted::" Currently does not kill the breakpoints. " The source code differs from the original version ", and finally found that there is no B project in the dependency of a. The original vs is automatically added, it is possible that the file has been manually modified by me, resulting in B in a dependency option lost. Right-click the A project and select dependencies to re-tick the item B and all OK.
7. When you use Visual Studio 2005, you encounter more than one time "currently does not hit the breakpoint." The source code is different from the original version "problem,
There are several ways to solve this:
<1>: "Tools", "Options", "Debug", "require the source file to match the original version" to remove the tick or set the breakpoint.
<2>. Reformatting the source file for the problem can also be resolved by selecting Edit-Advanced-format selection in VS2005.
<3>. Open the problematic file with Notepad and then save it as Unicode encoding to resolve it.