Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing documentation on OnFailureEncountered crash debugging #10168

Open
lolametro opened this issue Nov 12, 2024 · 0 comments
Open

Missing documentation on OnFailureEncountered crash debugging #10168

lolametro opened this issue Nov 12, 2024 · 0 comments
Labels
needs-triage Issue needs to be triaged by the area owners

Comments

@lolametro
Copy link

In the WinUI community call March 6, 2024 @Scottj1s presented "Crash debugging in 1.5".
https://www.youtube.com/live/uFgGhNGlPm4?t=1035

It showed how to debug nasty crashes within WinUI/WASDK where the exception raised contains no helpful error code and no call stack. Unfortunately, within the video the screen sharing didn't properly work, so we were partially unable to see which steps were taken.

In #9361 (comment) I have asked whether the steps could be documented in a blog post/docs page. While it was promised, unfortunately it didn't happen yet.

Therefore I would like to request the steps to be documented, so Google Bing (and AI models 😊) can index this information more easily.


In the meantime, I will document the steps here as well:

  1. Ensure Microsoft public symbols server is enabled in Visual Studio Options -> Debugging -> Symbols
  2. Ensure Source Link & Source Server is enabled in Visual Studio Options -> Debugging -> General (not mentioned in the video!)
  3. Enable native debugging in project debug properties
  4. Debug the project
  5. Go to the "Breakpoints" tab in the lower Visual Studio pane
  6. Add "New Function Breakpoint"
  7. Enter "Microsoft.ui.xaml.dll!OnFailureEncountered" and select C++
  8. Click OK
  9. Restart debugging, and now your debugger will break early in C++ code which allows you to inspect the call stack and find the line of code that threw the error

Image

Image

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Nov 12, 2024
@RDMacLachlan RDMacLachlan transferred this issue from microsoft/WindowsAppSDK Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant