[FIXED] How to display debug error in xamarin vscode?

Issue

When attempting to redirect to another page on my xamarin app, if there is a runtime error in the xaml page that I am redirecting to or the constructor for the view model, the page doesn’t redirect but it also does not display any error and sits on the same page. Is there a way to debug this in vscode like I would with the chrome debugger console?

A stack trace or something along these lines to find out what the problem is would make life a lot easier.

Solution

Just wrap the InitializeComponent(); of this page in the try-catch block and process the error.

Answered By – Nick Kovalsky

Answer Checked By – Mary Flores (Easybugfix Volunteer)

Leave a Reply

(*) Required, Your email will not be published