Source: http://fasdw.spaces.live.com/blog/cns! 3087cbcad4a30337! 119. entryvc could not set the breakpoint. In the past, there was a VC ++ in the machine, and later the VC SP6 version was installed. It was found that debugging was not possible. Specifically, you cannot set breakpoints. more strictly, you cannot set breakpoints where you want to set breakpoints. (Of course, these regions are legal, such as the ondraw of cview ). However, after you press F10 and enter winmain, you can set breakpoints in the source code of MFC. This is strange.
It cannot be installed back to the previous version. After checking the system online for a long time, no one can explain the problem. I made up my mind to reinstall the system. After half a day of installation, the SP6 version was available at the beginning. However, when I went to the VC for debugging, I found that I couldn't. My God. Of course, it is too difficult to solve this problem. I found a post on the Internet written by Americans, as if it was about the problem that DLL cannot set breakpoints, which is not the same as mine. Today, I thought about it for another half a day. I suddenly realized, is it because the path is Chinese? I remember that the patch for SP6 is in English. Although it is a Chinese interface after installation, does it not support Chinese paths? Later, an mfc exe was created. Single Program. Debug and run. Yes. Haha. It must be a path problem. An error may occur when the path is made in Chinese. Then we can take back the previous program for debugging. First of all, we need to change the path and find that it still doesn't work. Well, we need to exit the program first and go to the directory of the program that cannot be debugged, find. OPT and. NCB, delete them, and recompile again! Successful. PS: in fact, the above author has an error, only the directory contains non-matching full-angle characters (such as "()", the left parenthesis is half-angle, and the right parenthesis is full-angle) you cannot debug and run it. However, this article provides a lot of inspiration.