当 VS2013 上同一项目的 运行 2 个实例时,不会命中断点

breakpoint isn't hit when running 2 instances of the same project on VS2013

我为同一项目创建了 2 个实例以应用不同的更改。所以当我打开 project1 并调试 class1 时,一切都很顺利,我可以让我的断点命中所有其他调试功能。 当我打开 project2 并关闭 project1 时,我尝试对 class1 进行相同的调试(某些代码行不同),我得到警告

"the breakpoint will currently not hit. a copy of class1.cs was found in project1.dal.dll, but the current source code is the different from ther version"

当我完全关闭 VS 并重新打开项目时,或者如果我清除临时 ASP.NET 文件,问题就会得到解决。但它每次都会发生在我身上。所以我的问题是;

1)我想知道为什么会发生这种情况,如何在不关闭 VS 或清除缓存文件的情况下解决它?

2) 我知道名为 "Uncheck Require source files to exactly match the original version" 的选项。这样做安全吗?或者有任何副作用或缺点

不可能以这种方式调试您的代码 - 您正在为每个版本创建不同的符号,因此当您调试一个版本时,另一个版本与前一个版本不兼容。

长话短说 - 当加载了另一个版本的符号时,您无法调试一个版本的代码。

更多信息:Fixing "The breakpoint will not currently be hit. No symbols have been loaded for this document."

编辑:

同时检查此 link:What is the "Temporary ASP.NET Files" folder for?