VC cannot set the breakpoint problem-a good solution

Source: Internet
Author: User
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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.