简体   繁体   English

在使用Visual Studio 2010时将调试器附加到程序时,无法查看托管变量名称

[英]Cant see managed variable names when attaching a debugger to a program when using Visual Studio 2010

I have a program that have both C++ and C# code. 我有一个既有C ++又有C#代码的程序。 If I start the program and later attaching the debugger to the process I can only see the variable names in the C++ code not the C# code. 如果我启动程序并稍后将调试器附加到进程,我只能看到C ++代码中的变量名而不是C#代码。

If I start the program in debug from the beginning everything works good, but then the program runs really really slow. 如果我从头开始调试程序一切正常,但程序运行真的很慢。

Does anyone have a solution to this? 有人有解决方案吗?

Attach to Process dialog in my VS2005 has Attach to option, which is by default set to Native mode. 我的VS2005中的Attach to Process对话框有Attach to选项,默认设置为Native模式。 This can be changed by clicking Select button and checking Managed option. 单击“选择”按钮并选中“托管”选项可以更改此设置。 Hopefully, VS2010 has something similar in its Attach dialog. 希望VS2010在Attach对话框中有类似的东西。 Check Managed and Native for your application. 检查Managed和Native是否适用于您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 查看变量时Visual Studio调试程序崩溃 - Visual Studio debugger crashes when viewing a variable 在Visual Studio 2010调试器中修改托管代码的方法返回值 - Modifying method return value for managed code in Visual Studio 2010 debugger Visual Studio 2010调试器 - Visual Studio 2010 Debugger 在执行单元测试时,Visual Studio在连接调试器之前先构建多个时间 - Visual Studio Builds mutiple times before attaching debugger when executing unit tests 如何在Visual Studio 2010调试器中查看后台线程 - How to see background threads in Visual Studio 2010 debugger 附加到Unity时Visual Studio引发错误 - Visual Studio throws errors when attaching to Unity Visual Studio Debugger 在使用 dotPeek 调试第三方反编译代码时看不到参数或局部变量 - Visual studio Debugger can't see parameters or local variables when debugging a third party decombiled code using dotPeek Visual Studio调试器未附加 - Visual Studio debugger isn't attaching 使用Debugger.Launch时,控制台输出未在Visual Studio中显示 - Console output not shown in Visual Studio when using Debugger.Launch 显示与Word 2010和Visual Studio 2010中的复选框名称相关的相应文本,如果未选中该复选框,则将其删除? - Displaying corresponding text relating to check box names in Word 2010 and visual Studio 2010 that is removed when box is unchecked?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM