Discussion:
how to stop loading symbols of DLLs?
(too old to reply)
t***@intex.com
2008-11-18 22:30:57 UTC
Permalink
How can I stop Visual Studio from loading symbols? I'm debugging a DLL
(that I build) that supports a GUI. Via Visual Studio, I run the
GUI and this GUI also loads in various DLLs for its grid control. I
want
to disable this grid control symbol loading since I'm never going to
debug this third party control.

Thanks,


Ted
Brycej
2008-11-19 02:58:12 UTC
Permalink
Easiest way I can think of... VS can't load what it can't find so... simply
copy the PDB's for the modules you don't want loaded to a temporary
directory.
Post by t***@intex.com
How can I stop Visual Studio from loading symbols? I'm debugging a DLL
(that I build) that supports a GUI. Via Visual Studio, I run the
GUI and this GUI also loads in various DLLs for its grid control. I
want
to disable this grid control symbol loading since I'm never going to
debug this third party control.
Thanks,
Ted
t***@intex.com
2008-11-19 13:58:52 UTC
Permalink
Agreed but when I search for uxtheme.pdb (since VS says it's loading c:
\windows\system32\uxtheme.dll) I don't find it on my computer.
Post by Brycej
Easiest way I can think of... VS can't load what it can't find so... simply
copy the PDB's for the modules you don't want loaded to a temporary
directory.
Post by t***@intex.com
How can I stop Visual Studio from loading symbols? I'm debugging a DLL
(that I build) that supports a GUI.   Via Visual Studio, I run the
GUI  and this GUI also loads in various DLLs for its grid control. I
want
to disable this grid control symbol loading since I'm never going to
debug this third party control.
Thanks,
Ted- Hide quoted text -
- Show quoted text -
Ben Voigt [C++ MVP]
2008-11-20 22:03:06 UTC
Permalink
Post by t***@intex.com
Agreed but when I search for uxtheme.pdb (since VS says it's loading
c: \windows\system32\uxtheme.dll) I don't find it on my computer.
Turn off use of the Microsoft symbol server.

Also, Microsoft symbols aren't named .pdb
Post by t***@intex.com
Post by Brycej
Easiest way I can think of... VS can't load what it can't find so...
simply copy the PDB's for the modules you don't want loaded to a
temporary directory.
Post by t***@intex.com
How can I stop Visual Studio from loading symbols? I'm debugging a
DLL (that I build) that supports a GUI. Via Visual Studio, I run the
GUI and this GUI also loads in various DLLs for its grid control. I
want
to disable this grid control symbol loading since I'm never going to
debug this third party control.
Thanks,
Ted- Hide quoted text -
- Show quoted text -
Martin T.
2008-11-21 09:01:16 UTC
Permalink
Post by t***@intex.com
\windows\system32\uxtheme.dll) I don't find it on my computer.
Are you sure you're not confusing symbol loading and dll loading?

0.) Executable and local dll's with symbol info:
Loaded '(...).exe', Symbols loaded.

1.) A DLL with symbols from the MS Symbol server:
.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Symbols loaded (source
information stripped).

2.) A DLL without symbol/debugging info:
Loaded 'C:\Perl\bin\zlib1.dll', Binary was not built with debug information.


You can prevent symbol loading for your DLLs by removing the creation of
symbols and not linking to the symbol server.

You cannot prevent loading of the DLLs you will always get dozens of
output msges like (2) above when you start the debugger.

br,
Martin

Loading...