Quantcast
Viewing latest article 2
Browse Latest Browse All 4

Can’t set break points in Visual Studio debugger due to symbol loading problems?

When you can’t set break points when the debugger is running, it’s most likely due to symbols loading related problems.  Instead of smashing your computer, check the following first:

  • Make sure you really setup the symbols.  Tools -> Options -> Debugging ->Symbols.  Add all the paths where expected .pdb files are stored.  Also make sure the permission is set correctly on the folder, especially for remote shared folders.  Use "net use …" command if necessary.
  • In VS2005, Tools -> Options -> Debugging -> General.  Uncheck "Just my code".
  • Make sure the application is running in debug instead of release mode.  Check web.config file for tag <compilation debug="true">, or right click the solution in the solution explorer and choose properties.
  • The timestamp of the .pdb files and their corresponding .dll files are in sync.  The unmatching symbol files are not picked up, because if they are not matching, there could be unexpected harmful running results.
  • Check the Module window (Debug -> Windows -> Modules) and make sure all symbols are loaded when running the debugger.
  • Delete bin and obj folders, restart VS or OS and retry.
  • Delete the project and fetch source tree again and retry.
  • If none of the above helps, go ahead and smash your computer.

Viewing latest article 2
Browse Latest Browse All 4

Trending Articles