VS2015 The breakpoint will not currently be hit. No symbols have been loaded for this document
Fixing:
- Right mouse click your project
- Select Properties
- Select the Build tab
- Make sure Define DEBUG constant and Define TRACE constant are checked
- Click the Advanced button at the bottom of the Build tabpage
- Make sure that Debug Info: is set to Full
- Click OK and save changes
- Clean solution and rebuild the project
Link to source Fixing “The breakpoint will not currently be hit. No symbols have been loaded for this document.”.
(step 6 generates the .pdb files, these are the debugging symbols)
For more information see next screenshots. Build settings:
Advanced settings of build:
Checked for Microsoft Visual Studio Enterprise 2015 and Microsoft Visual Studio Professional 2017.
I had similar issue and I did the following simply:
Go to Debug
=> Options
=> General
=> Remove the check mark for "Enable Just My Code
"
This worked for me.
Another reason this can happen is that if you are sharing multiple projects between solutions and you have set up custom build configurations then simply changing from release to debug on the toolbar (or other shortcuts) can mess up the active build configuration and create all sorts of random consequences.
Make sure that Solution > Properties > Active Config is what you expect ('Mixed' is usually bad) and use Solution > Configuration Manager if in doubt.
I forgot again and the tactics popular on the intertubes did not, of course, work so this is partly a note to self...