调试Visual C ++程序时如何禁用符号加载? [英] How to disable symbol loading when debugging a Visual C++ program?

查看:967
本文介绍了调试Visual C ++程序时如何禁用符号加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2008.我不需要调试我的项目中的一些DLL,所以我可以在调试Visual C ++程序时禁用符号加载?这是否有助于在调试时使启动时间更快?

I am using Visual Studio 2008. I don't need to debug some DLLs in my project, so can I disable symbol loading when debugging a Visual C++ program? Does it help to make startup time faster when debugging?

符号都是本地的,所以我没有那些缓慢的加载问题,只是想使调试更快,更快。

The symbols are all local, so I don't have those slow loading problem, just want to make debugging faster and faster.

例如我使用Qt库,当我点击启动调试时,输出窗口显示了加载了Qt库的符号。如果VS可以停止加载这些符号,调试启动时间应该更快。当然,我仍然希望VS加载我的可执行文件的符号。

For example I am using Qt libraries, when I hit "Starting Debugging", the Output window shows that the symbols for Qt libraries are loaded. If VS can stop loading those symbols, the debugging startup time should be faster. Of course, I still want VS to load symbol for my executable.

推荐答案

刚刚发现,Visual Studio 2010实际上是做什么

Just found out that Visual Studio 2010 actually do what I want.

仅加载可执行文件的符号,而不加载其他符号(例如:DLL):

To load only the symbol for your executable file, without loading other symbols (eg: DLLs):


  1. 转到工具 - >选项 - >调试 - >符号

  2. 单击仅指定模块

  3. 清除总是加载位于模块旁边的符号

  4. 单击指定模块

  5. 单击新图标

  6. 输入您的可执行文件名(例如:my-awesome-app.exe)

  1. Go to Tools->Options->Debugging->Symbols
  2. Click "Only specified modules"
  3. Clear "Always load symbols located next to modules"
  4. Click "Specify modules"
  5. Click the new icon
  6. Enter your executable filename (eg: my-awesome-app.exe)

还发现Visual Studio 2010似乎表现更好比Visual Studio 2008调试时。当调试停止时,至少IDE布局会更快地切换回来。

Also found out that Visual Studio 2010 seems to perform better than Visual Studio 2008 when debugging. At least the IDE layout switches back faster when the debugging is stopped.

这篇关于调试Visual C ++程序时如何禁用符号加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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