调试器不会步入MFC源代码 [英] Debugger does not step into MFC source code

查看:336
本文介绍了调试器不会步入MFC源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2010有一个新的SDI项目,但我不能进入MFC源。我按照此处和似乎资源符号没有加载由于某些原因,但它不会加载右键单击任何一种如最多投票的答案。

I have a new SDI project in VS2010 but I can't step into MFC source. I followed the steps here and it seems like the resource symbols are not loaded for some reasons but it wouldn't load on right click either as described in the most voted answer there.

当我进入调试>> Windows>模块时,该窗口显示符号状态列为找不到或打开PDB文件。我想这是问题,但当我右键单击任何一个模块(例如mfc100enu.dll)我得到另一个对话框,类似的消息,不能找到符号文件。

When I go into debug >> Windows > Modules, that window shows the symbol status column as Cannot find or open the PDB file. I guess that's the problem but when I right click on any one module (for example mfc100enu.dll) I get another dialog with similar message than can't find symbol file.

这是什么错误,它找不到符号文件和如何解决这个问题? com / OVAhm.pngalt =Module Window>

我要进入的函数是 LoadFrame 在下面的基本SDI应用程序中。

The function I want to step into is LoadFrame in below in my basic SDI application.

BOOL CMainFrame::LoadFrame(UINT nIDResource, DWORD dwDefaultStyle, CWnd* pParentWnd, CCreateContext* pContext) 
{
    // base class does the real work

    if (!CFrameWndEx::LoadFrame(nIDResource, dwDefaultStyle, pParentWnd, pContext))
    {
        return FALSE;
    }

...
}

任何提示如何不能加载它们和什么可能是错误?感谢

Any hints how can I not load them and what might be wrong? Thanks

更新

我可以让VS2010载入符号档案通过转到工具 - >选项 - >调试 - >符号并选择复选框Microsoft符号服务器,现在Visual Studio自动加载PDB。

I was able to get VS2010 to load the symbol files by going to Tools->Options->Debugging->Symbols and select checkbox "Microsoft Symbol Servers" and now Visual Studio loads PDBs automatically. However I still can't step into the function.

推荐答案

我发现添加符号服务器并没有解决问题

I found that adding the symbol servers didn't solve the problem for me.

解决问题的方法是将此目录添加到位置列表以查找符号。不确定为什么Visual Studio不会添加此本身。

What did solve the problem was adding this directory to the list of locations to look for symbols. Not sure why Visual Studio doesn't add this itself.

C:\Windows \Symbols\dll

C:\Windows\Symbols\dll

这篇关于调试器不会步入MFC源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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