What if you have a handful of DLLs or just being paranoid? Here's how to stop loading the DLL symbols and, except of course, your executable file:
- In Visual Studio 2010, go to Tools->Options->Debugging->Symbols
- Click "Only specified modules"
- Click "Specify modules"
- Clear "Always load symbols located next to modules"
- Click the new icon
- Enter your executable filename. If you don't specify your program here, breakpoints will not be hit.
The idea is, most of the time, you want to debug only your executable, leaving those DLLs behind. In case you want to dig into those DLLs, just change the option to "All modules, unless excluded", or whichever way you want.
Note that these symbol options has global effect. Be careful if you work on several projects at one time. You may need to change those options back and forth.