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.
Enable the parameter to allow Visual Studio to load symbols for items that are not in your current solution:
I hope this solves the error! If it does, or it doesn’t, let me know in the comments.