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!
-
Try starting it up and then attaching a debuggerFlydog57– Flydog572022-09-09 23:51:41 +00:00Commented Sep 9, 2022 at 23:51
-
1Create a minimal reproducible example and share it.EddieLotter– EddieLotter2022-09-10 00:34:16 +00:00Commented 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.Andrew KeepCoding– Andrew KeepCoding2022-09-10 00:40:36 +00:00Commented Sep 10, 2022 at 0:40
-
Try winDBG Preview instead of Visual Studio learn.microsoft.com/en-us/windows-hardware/drivers/debugger/…Simon Mourier– Simon Mourier2022-09-10 05:44:30 +00:00Commented Sep 10, 2022 at 5:44
Add a comment
|