c# - VS 2008 突然无法启动调试 session

标签 c# visual-studio debugging

我在 Visual Studio 2008 的调试器中运行应用程序时遇到了很大的问题。

当我使用 vshost.exe 时,它​​说:

enter image description here

当 vshost.exe 被关闭时,它只是声明:

enter image description here

有趣的是,当我使用 vshost 时,调试器实际上已启动,并且断点位于 Main() 的第一行。

我试过:

  • 重建项目
  • 删除项目的 .ncb、.suo、.user
  • 修复 Visual Studio 2008
  • 更改项目的构建架构

...没有帮助...

在(麻烦)拍摄方面有什么经验吗?

更多信息:有些项目确实有效,而我必须从事的项目却没有。

我有一些想法,例如:

  • 尝试创建新项目,向其中添加一个项目,看看它会在什么时候开始表现不佳
  • 换一种方式,逐项删除项目,看看它何时(如果可以)再次正常工作。

编辑(对于谷歌,因为我看到网上有很多类似的问题):

错误:

Error while trying to run project: Unable to start debugging.

Error while trying to run project: Unable to start program '....\PlayKontrol.exe'

最佳答案

尝试将您的 Visual Studio 升级到 Service pack 1,如果您还没有的话。

关于c# - VS 2008 突然无法启动调试 session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10310038/

相关文章:

c# - 无法从 Controller 返回 HTML

c# - 以编程方式按下网页上的按钮

.net - 如何从 Visual Studio 中的另一个解决方案调试项目?

python - 检查正在运行的进程在做什么 : print stack trace of an uninstrumented Python program

当开发者工具关闭时,Javascript 在 IE 中失败

c - 冒泡排序问题

c# - C#/VB.NET 中的缩略图

c# - 如何正确暂停/停止线程?

c# - 未指定 'targetFramework' 属性时 Nuget 不安装依赖项

c++ - Visual Studio 2019 C++ dll Excel VBA 插件问题