VS2010 Modify program code, when you debug a program, "The breakpoint is not currently hit and the source code is different from the original version." "Solution, and vs Debug, you cannot modify the source code of the solution.
Source: Internet
Author: User
1, vs2010 after modifying the source code, the debugger, currently does not hit the breakpoint, the source code and the original version is different. Online Search Solution: 1, tools "--and options"--debugging "require source files to match the original version" to remove the tick. Not resolved. 2, "edit"-"advanced"-"Set document Format". Not resolved. Self-analysis, new solution, new test Project This issue does not occur. The problem should appear on the solution settings or project settings that are problematic, and the modified assembly is not recompiled when debugging is suspected. Check the program, the "Generate" check, and then try to solve the problem. Almost put the VS reload, I go.
2, vs debugging, you cannot modify the source code solution. The following illustration shows a hint:
Solution: (1) The view results are related to "tools, options, debugging, Edit and Continue" and "enable Edit and Continue" and "tools--options, Debug-A-process interrupts all Processes" button, But my two buttons are selected and are normal. When the "Enable Edit and Continue" option is removed, the above question prompt is not popped (prompting that the source file has changed, no longer matches the following version of the file, this version of the file is used to build the application being debugged), but the code is modified and rerun the system to take effect, which also affects productivity. (2) 1 of the scheme does not work is suspected to be in the red box inside the reason, that is, the assembly generated when the debug information set to None or Pdb-only (General debug mode is full release mode of pdb-only) if not set to full, the code will not be allowed to modify. Modify the build configuration to debug or the assembly properties in VS-"generate-Advanced-" Debug Info-"full, which guarantees that the build is set to output debug information full.
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.