Visual Studio在附加到进程时未加载模块 [英] Visual Studio is not loading modules when attaching to process

查看:412
本文介绍了Visual Studio在附加到进程时未加载模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C ++应用程序。当我在Visual Studio应用程序启动时按F5,我可以调试它。但是当我从Windows资源管理器运行应用程序,然后在Visual Studio中连接这个过程我看到断点可以命中(他们是完全红色),但断点不命中。当我看到模块窗口没有什么是存在。什么是问题?

I have a C++ application. When i press F5 in visual studio application starts and i can debug it. But when I run application from windows explorer and then attach this process in visual studio I see breakpoints can be hit (they are completely red) but breakpoint does not hit. When I see modules window nothing is present there. What is problem?

推荐答案

验证代码类型Visual Studio配置为加载符号。 附加到进程对话框具有选择代码类型选项以指定要加载的符号。在这里您可以选择托管符号和/或原生符号。

Verify the code type Visual Studio is configured to load symbols. Attach To Process dialog has Select Code Type option to specify which symbols to load. Here you can select Managed symbols and/or Native symbols.

程序集也应该是相同的版本。

Also the assemblies should be of same version.

这篇关于Visual Studio在附加到进程时未加载模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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