Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable symbol loading when debugging a Visual C++ program?

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.

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.

like image 586
fxam Avatar asked Sep 18 '10 06:09

fxam


People also ask

How do I stop the symbol from loading in Visual Studio?

You may have a symbol server or symbol path set in your symbol settings (Tools->Options->Debugging->Symbols) that is being queried every time a dll is loaded. You can disable, or delete any such paths.

How do I disable debug mode in Visual Studio?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.

What is loading symbols in Visual Studio?

Visual Studio's default behaviorVisual Studio will try to load symbols for all binaries (referred to as “modules”) in the process when the module is loaded (and for all modules already loaded when attaching to a process). The exception to this is when you are debugging managed (.


1 Answers

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

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

  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)

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.

like image 85
fxam Avatar answered Sep 28 '22 08:09

fxam