无法使用F5从visual studio 2013进行调试,模块窗口为空 [英] Unable to debug with F5 from visual studio 2013, modules window is empty

查看:191
本文介绍了无法使用F5从visual studio 2013进行调试,模块窗口为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2013中的启动外部程序来调试程序。所有项目文件都是.NET 3.5。作为旁注:自从我更新到VS2013(约两周)之后,我已经进行了这样的调试,但今天已经停止了工作。

I am trying to debug a program using start external program in Visual Studio 2013. All project files are .NET 3.5. As a sidenote: I have debugged like this since i updated to VS2013 (about two weeks), but today it suddently stopped working.

当我运行程序时,但是 Debug-> Windows-> Modules 窗口是空的。

When I run the program it starts, but the Debug->Windows->Modules window is empty.

当我启动程序并将Visual Studio附加到托管(v3.5,v3.0,v2.0)代码一切正常加载,我可以调试。
但是当我选择托管(v4.5,v4.0)代码时,我得到与上述相同的空白模块窗口,没有活动断点。

When I start the program and attach Visual Studio to process with Managed (v3.5, v3.0, v2.0) code everything loads smoothly and I am able to debug. But when I choose Managed (v4.5, v4.0) code I get the same blank modules window as above and no active breakpoints.

可能是启动外部程序使用托管(v4.5,v4.0)代码而不是托管(v3.5, v3.0,v2.0)代码
有没有办法控制Visual Studio在使用启动外部程序时使用哪个调试器?

Could it be that start external program uses the Managed (v4.5, v4.0) code instead of Managed (v3.5, v3.0, v2.0) code? And is there any way to control which debugger Visual Studio uses when using start external program?

我已经仔细检查了所有使用调试配置构建的项目设置为.NET 3.5,因为我的第一个想法是其中一个项目可能会以较高版本构建。一个项目是.NET4.0,但没有设置为在我的配置中构建。

I have double checked that all project that builds with the debug-configuration is set to .NET 3.5 since my first thought was that one of the projects might build in a higher version. One project is .NET4.0 but is not set to build in my configuration.

推荐答案

经过一些研究,我最终添加了每个版本的可执行文件的.config文件。配置文件必须命名为 ExecutableNameHere.exe.config

After some research I ended up adding a .config-file for each version of the executable. The config-file must be named ExecutableNameHere.exe.config.

这里是用于将活动调试器设置为.NET 3.5的配置:

Here is the config I used for setting the active debugger to .NET 3.5:

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

只需将文件保存在与可执行文件相同的目录中,下次调试时即可使用.NET版本。

Just save the file in the same directory as the executable and the next time you debug it will use this .NET version.

对于其他.NET版本,请将版本替换为以下内容:

For other .NET versions, replace version with the following:


  • 。 .NET Framework 1.0:v1.0.3705

  • .NET Framework 1.1:v1.1.4322

  • .NET Framework 2.0,3.0和3.5 :v2.0.50727

  • .NET Framework 4和4.5(包括点数释放,如4.5.1):v4.0

  • .NET Framework 1.0: "v1.0.3705"
  • .NET Framework 1.1: "v1.1.4322"
  • .NET Framework 2.0, 3.0, and 3.5: "v2.0.50727"
  • .NET Framework 4 and 4.5 (including point releases such as 4.5.1): "v4.0"

参考: http://msdn.microsoft.com/en-us/library/jj152935(v = vs.110).aspx

这篇关于无法使用F5从visual studio 2013进行调试,模块窗口为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆