

You can work around this issue by going back into your Dynamics 365 Finance and Operations environment and navigating to Options before moving to the debugging section. Microsoft is aware of the issue and has its own post about it.

When attempting to debug X++ code the Visual Studio 2019 debugger can crash unexpectedly, which can be rather frustrating.

While working with this program, I noticed another hiccup I wanted to highlight to ensure you are aware of it and how you can fix it. Recently, I wrote a blog post about breakpoints not being recognized when attempting to debug X++ code in Visual Studio 2019. Dynamics GP to Dynamics 365 Business Central.Dynamics NAV to Dynamics 365 Business Central.
