I suddenly encountered this problem, and tried hundreds of solutions online and no one is helpful to me.
And finally I tried one that is useful:
in the tool-option--> debugging ---> general
*un-tick option : "require source files to exactly match to the original version"
Other solutions:
1."recompile/build the project before adding the break-point"
2.clean/rebuild
3.Build --> Configuration Manager ...and check if the project with the code you're trying to debug is checked for the current build configuration.
4...
博主遇到调试问题,尝试网上数百种解决方案均无效,最终找到一个有效方法,即在调试的常规设置中取消勾选‘要求源文件与原始版本完全匹配’选项,还列举了其他如重新编译项目、清理重建等解决办法。

被折叠的 条评论
为什么被折叠?



