I ran into this problem today while trying to do some transparency shader stuff. I run the program (which compiles without error and starts running just fine) and set some breakpoints. But the breakpoints turn from red to white with a red outline, with a warning message that says:
The breakpoint will not currently be hit. No symbols have been loaded for this document.
After searching around for a while, it appears lots and lots of people have this problem, and there’s not one single solution. But I never saw the solution that I stumbled into, so I felt like it was probably worth posting for other people’s information.
A day or two ago, I was messing around with the symbols that Visual Studio loads and changed a setting. All I had to do was set it back.
- On the Debug menu, choose Options and Settings.
- On the panel on the left, find Debugging > Symbols and select it.
- On the panel that appears, towards the bottom, make sure All modules, unless excluded is selected instead of Only specified modules.