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

E2E guide how to collect a dump and debug it with VS or LLDB #2903

Closed
Tracked by #515
mikelle-rogers opened this issue Mar 4, 2022 · 3 comments
Closed
Tracked by #515

E2E guide how to collect a dump and debug it with VS or LLDB #2903

mikelle-rogers opened this issue Mar 4, 2022 · 3 comments
Assignees
Labels
documentation Documentation related issue
Milestone

Comments

@mikelle-rogers
Copy link
Member

mikelle-rogers commented Mar 4, 2022

Walkthrough: see #515

@mikelle-rogers
Copy link
Member Author

@hoyosjs what method of collection were you thinking we should use for this doc issue? (collecting a dump on a crash, using dotnet-dump, gc-dump, etc.)?

@hoyosjs
Copy link
Member

hoyosjs commented Dec 6, 2022

I'd mention the other guides - essentially make this a quick tutorial pointing to the more detailed guides. For this I'd use a sample app that crashes and then load it into LLDB, since I feel like that's a scenario that's interesting and we don't have too much information floating around on.

# How to analyze a dump

## Collecting a dump

Share pointers to 

- dotnet dump for hang or ad-hoc dumps
- Collecting dumps under a debugger (VS and WinDBG)
- Collecting crash dumps with the env vars.
- Perhaps point to procdump on the sysinternals page.
- Point to Unix system dumps with the caveats that not everything might work.

## Analyzing a dump

Explain how to analyze it using lldb, link sos commands. There's some prior art in here: https://learn.microsoft.com/en-us/dotnet/core/diagnostics/debug-linux-dumps#analyze-dumps-on-linux

## Alternatives

Link to https://learn.microsoft.com/en-us/visualstudio/debugger/using-dump-files?view=vs-2022#BKMK_Open_a_dump_file and https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-dump#using-dotnet-dump and the caveats (when to recommend one vs the other)

@tommcdon
Copy link
Member

tommcdon commented Mar 6, 2023

Closing via dotnet/docs#32988

@tommcdon tommcdon closed this as completed Mar 6, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Documentation related issue
Projects
None yet
Development

No branches or pull requests

3 participants