c# - Visual Studio 2008 - 运行时卡住,当我尝试调试时显示 "unable to break execution"

标签 c# debugging visual-studio-2008-sp1

我在 Visual Studio 2008 上运行 C# 程序 它在某个时候卡住,当我尝试暂停调试时,VS2008 也卡住了。 当我关闭程序控制台窗口时,它会弹出一个“无法中断执行”的消息框。 什么时候可能是这个原因?

谢谢 罗伊

最佳答案

当我尝试使用“启动外部程序”调试 .NET 2.0/3.0/3.5 项目并且程序自动加载 v4.0 时出现此错误。您可以使用指定的 SupportedRuntime 轻松地为外部程序添加 app.exe.config 文件:

<?xml version ="1.0"?>
<configuration>
  <startup>
    <supportedRuntime version="v2.0.50727" /> 
  </startup>
</configuration>

请注意,“v2.0.50727”适用于 2.0、3.0 和 3.5,无论服务包如何。

关于c# - Visual Studio 2008 - 运行时卡住,当我尝试调试时显示 "unable to break execution",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1099239/

相关文章:

C# GUI 线程错误

visual-studio-2010 - 我如何确定我的进程终止的原因

visual-studio - 视觉 haskell 2008

visual-studio - 在 "D"驱动器上安装 Visual Studio 2008 Sp1

c# - .NET 在执行调用需要较低权限的 COM+ 的特定代码块时降级管理员权限或模拟当前用户

c# - 我们可以使用 CaSTLe Windsors Fluent API 设置 Convertible 属性吗

c# - 无法加载文件或程序集...尝试加载格式不正确的程序 (System.BadImageFormatException)

debugging - 调试 R 代码时如何跳过循环

debugging - 即使 (--cx != 0),LOOP 指令也无法循环

c++ - 链接 : fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-1_45.lib'