
When attempting to debug X++ code the Visual Studio 2019 debugger can crash unexpectedly….
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

Check the check box “Debug items in the solution and items in specific packages“.

Then move into the Include Packages (Models) section and UNCHECK the models you will not be needing in the debugging session you will be running.
For example you can simply check your custom model and the ApplicationSuite

