I am struggling to overcome this obstacle and I have high hopes that someone on SO can help.
When I set a breakpoint in my class library project. It appears as a normal breakpoint. When I start debugging my solution the breakpoint becomes hollowed out and has a yellow triangle with an exclamation point inside. The tooltip displayed when I pan over the breakpoint is, "The Breakpoint will not currently be hit. No Symbols have been loaded for this document."
This project is not an ASP.NET application, it is simply a winForms application.
I have taken over an existing winForms application with multiple projects in the solution. I have the project built and running in debug mode. I can stop at breakpoints in some projects but, I am unable to hit the breakpoints in other projects specifically my project that is of type class library.
What I have done thus far:
- I have deleted all debug and release folders,
- I have deleted the obj folder, and have rebuilt the solution afterwards.
- I have restarted the VS2008 IDE.
- I have restarted my computer.
- I checked the Configuration Manager for the solution to ensure that my class project is included in the debug build, and it is.
- I have checked the debug/modules for dll, although I am not trying to reference a dll.
Furthermore, I have followed the troubleshooting steps outlined in the SO posts:
the breakpoint will not currently be hit no symbols loaded
VS 2010, NUNit, and “The breakpoint will not currently be hit. No symbols have been loaded for this document”
The breakpoint will not currently be hit. No symbols have been loaded for this document.
Can't debug - “The breakpoint will not currently be hit. No symbols have been loaded for this document”
Fixing “The breakpoint will not currently be hit. No symbols have been loaded for this document.”
Additionally, I have read numerous posts found on Google from both MSDN and other locations, none of which fit my specific needs.
Some of these posts are:
Visual Studio 2008 "The breakpoint will not be currently hit. No symbols have been loaded for this document"
The breakpoint will not currently be hit. No symbols have been loaded for this document
Breakpoint will not currently be hit. No symbols loaded for this document.
Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document
The Breakpoint will not currently be hit. No Symbols have been loaded for this document.
All of the posts I have read have been very informative, but none of the suggested solutions have fit my specific needs. Please let me know if more information is warranted. I have more links I can provide as references to what has not worked. As well as additional steps I have taken to attempt to solve this issue.
I am posting this follow-up to keep everyone aprised. I followed @Hans @ suggestion to call the project file in question.
I placed a dim frm as form = new ProjectInQuestion.FormInQuestion
and
this now has the assembly loading in the debug--> Windows->Modules
The new problem is more perplexing than my original issue. My breakpoints look fine, but are being skipped. There are no error evident at the breakpoint.
See Question&Answers more detail:
os