I'm unable to debug a project. I'm getting the "The breakpoint will not currently be hit. No symbols have been loaded for this document" error. I've tried everything I could find online, but nothing has worked. I'm hoping someone out there will be a fresh pair of eyes to find the problem.
First of all, I inherited this project from a coworker who has left. He did development on his machine where he was able to debug it. He uploaded it to Subversion which is where I got it. Another coworker was able to download it and debug, but I cannot.
Second, I'm using Visual Studio 2015. The project is an asp MVC project. There are two projects in the solution: the main project with the views, controllers, models, etc. and the secondary project which is only the Telerik.OpenAccess code (the "data layer"). It's this secondary project that I can't debug.
* Update *
Following a suggestion on another board, I hit a break point in my main project and went to Debug-Windows-Modules where I can see the message "Binary was not built with debug information". I went to the folder shown and can see my pdb file was not made at the same time as my latest dll fill. My project is set to debug mode and build. What do I need to change to get the pdb file to be recreated along with my dll?
* End Update *
So here's the line in the main project I've got my breakpoint:
rep.UpdateWorkOrderVendorHeader(oaObj);
The breakpoint hits here. It's calling a function in the secondary project. When I try to step into that function, it skips to the next line in the main project. If I look in the secondary project, I see the "symbols not loaded error". I also have a breakpoint directly inside the secondary project and still it gets skipped:
I've found two stackoverflow streams that covered a variety of scenarios, but nothing has worked for me:
Fixing "The breakpoint will not currently be hit. No symbols have been loaded for this document."
Here is everything I think I've tried so far, but I may have missed something:
- Restarted Visual Studio
- Deleted code and copied code from co-worker that could debug secondary project
- Build - Clean and Rebuild & Clean and Build
- Deleting bin and obj folders
- Checked configuration set to debug and build
- Checked debug and trace constants are checked in the project properties
- Click Debug - Start new instance on secondary project
- Selecting multiple startup project (threw error saying the secondary project could not be started directly)
- Debugging in IE instead of Chrome
- Checked the reference to the secondary project in the main project has the correct directory
- Checked that Project - Properties - Build - Optimize code was unchecked
- Checked that Project - Properties - Build - Advanced settings were the same for both projects
- Checked that Project - Properties - Build - Advanced - Output was set to full
- Adding to the secondary project's App.config
- Making sure I was running Visual Studio as administrator
- Checked that Project - Properties - Build - Output path was /bin
I'll include seem screenshots of the config and properties below. Below is also a description of my project tree with some of the relevant files. I'd appreciate any suggestions you can give me. Thank you!
Koorsen (main project)
- References
- Koorsen.OpenAccess (secondary project)
- C:\inetpub\wwwroot\Koorsen\Koorsen.OpenAccess\bin\Debug\Koorsen.OpenAccess.dll
- Koorsen.OpenAccess (secondary project)
- bin
- Koorsen.dll
- Koorsen.pdb
Koorsen.OpenAccess (secondary project)
- bin
- Debug
- Koorsen.OpenAccess.dll.config
- Koorsen.OpenAccess.pdb
- Koorsen.OpenAccess.dll
- Telerik.OpenAccess.35.Extensions.dll
- Telerik.OpenAccess.35.Extensions.xml
- Telerik.OpenAccess.dll
- Telerik.OpenAccess.xml
- Release
- Koorsen.OpenAccess.dll
- Koorsen.OpenAccess.dll.config
- Koorsen.OpenAccess.pdb
- Telerik.OpenAccess.35.Extensions.dll
- Telerik.OpenAccess.35.Extensions.xml