Debugging is not broken. Check the options of. I tried my best to find the methods I have used:
1. Delete the debug of the referenced Project
2. Check "generate" of all projects in the Configuration Manager and select "debug" for "configuration". Do not release
3. "Active solution configuration" in the Configuration Manager and create a solution
4. Set the reference directory to a directory to prevent the latest version from being referenced (the source code does not match the dll version)
5. Remove the check box for tools, options, debugging, and general requirements for "exact match between source file and original version"
Five methods have been used. Still useless.
Finally, I accidentally thought that there were two reasons for this problem:
1. The DLL to be debugged is not in the process space of the debugging process and cannot be called
II,Source codeDLL used and the source for debuggingCodeThe version is incorrect. debugging fails.
The first line is out. It must be the second one. I finally remembered it. I have referenced three or four project files. Some project files do not reference the existing project on the "project", but directly reference a DLL that has been in use all the time. Delete the reference and reference it to an existing project.