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

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

问题描述

我想使用调试程序的启动外部程序的在Visual Studio 2013年所有的项目文件都.NET 3.5。一点题外话:我已经调试这样的,因为我更新到VS2013(大约两个星期),但今天它suddently停止工作。

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.

当我运行该程序启动。但是的调试 - > Windows的>模块的窗口是空的。

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中:1.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

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

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