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:
Breakpoint disabled

Enable the parameter to allow Visual Studio to load symbols for items that are not in your current solution:

Tools> Options> Dynamics AX> Debugging
parameters

This will enable the breakpoints in the code:
breakpoint enabled

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:
Breakpoints

I hope this solves the error! If it does, or it doesn’t, let me know in the comments.

3 comments

  1. Brad says:

    Thanks for this. However, I’m using VS 2010 and I don’t have the ‘Dynamics AX’ option under ‘Tools -> Options’. Any ideas?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">