简体   繁体   中英

Breakpoint Problem in VS2008

I have an ASP.NET web site project that I want to debug, but when I try to debug it Visual Studio gives the message "The breakpoint will not currently be hit. No symbols have been loaded for this document" . Does anyone know of a solution to this that does not involve reinstalling everything. Debug is enabled on those files.

Edit: manually loading symbols did not work.

Make sure that the assembly that contains the code you are trying to debug is compiled in Debug mode and that PDB symbols are included. Then rebuild the solution and try running again.

You need make sure that you the .PDB files (symbols files) that was generate during the compile time. you can load the symbols manually if needed.

Best way to check if PDB loaded:

  1. Pause execution in debugger using pause button;
  2. Open Debug windows Modules;
  3. select module you are interested in and check location from where it is loaded. If you have PDB file for this module you can load it;

Most common issue with ASP.NET modules are loaded not from your bin but from cache or some other folder.

我找到了解决我特定问题的解决方案:启动项目与带有断点的项目不同,并且当我将启动项目设置为该项目时,断点再次起作用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM