1

I have a c# WinUI 3 desktop application (VS 2019) that uses a NavigationView. I have been able to navigate to the different 'pages' of the menu successfully. Now when I navigate to one particular page, the application will crash (i.e. disappear). This occurs when I run the app via the Crtl+F5 debug option (Start Without Debugging). However when I run the app with F5, (Start Debugging), it will not crash when I navigate to the particular page, there are no exceptions thrown. I have added a lot of try catch statements and debug.writeline statements in order to find why the app crashes when not in debug mode. Is there some other way/approach/technique to find the exception that is causing the app to crash if I can't replicate the issue in debug mode? Thank you so much StackOverFlow!

4
  • Try starting it up and then attaching a debugger Commented Sep 9, 2022 at 23:51
  • 1
    Create a minimal reproducible example and share it. Commented Sep 10, 2022 at 0:34
  • Since the problem seems to be inside that particular page, it shouldn't be difficult to locate which component is causing the problem. Try reducing the components inside the page. Commented Sep 10, 2022 at 0:40
  • Try winDBG Preview instead of Visual Studio learn.microsoft.com/en-us/windows-hardware/drivers/debugger/… Commented Sep 10, 2022 at 5:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.