Dynamics and Visual Studio error: “The breakpoint will not currently be hit.”

If you see the following error while adding a breakpoint to X++ code in Visual Studio:
The breakpoint will not currently be hit. No symbols have been loaded for this document.
And your breakpoint is empty with a small exclamation mark next to it:
Enable the parameter to allow Visual Studio to load symbols for items that are not in your current solution:
Tools> Options> Dynamics AX> Debugging
This will enable the breakpoints in the code:
Once you start debugging your breakpoints in the breakpoints window will also turn from empty to red, and they will be hit when the code is executed:
I hope this solves the error! If it does, or it doesn’t, let me know in the comments.
Thanks for this. However, I’m using VS 2010 and I don’t have the ‘Dynamics AX’ option under ‘Tools -> Options’. Any ideas?
NVM. Under ‘Tools -> Options -> Debugging’ I just needed to uncheck the ‘Enable Just My Code (Managed only)’ checkbox.
Hi Brad, I’m glad you found the setting!