backtracing docs in Swift Server guides#88
Conversation
| By default the trace includes registers and a list of loaded images for the crashed thread. | ||
| You can tune or suppress both; see <doc:swift-backtrace-configuration#Captured-content>. | ||
|
|
||
| ### Map a frame to source |
There was a problem hiding this comment.
We might want to hold off on this section; we've been working on a tool that can symbolicate the output from the backtracer automatically — we're just waiting for a new repository to be created under swiftlang then we can push the code and organise a blog post about it.
With the new tool, you can just feed your log file to swift-symbolicate and it will output the same log file but with any crash reports it finds within symbolicated — it also knows how to fetch debug symbols from debuginfod or Microsoft-style symbol servers, and additionally can be used to convert between JSON and human readable output formats.
The new tool also keeps any data in the output that isn't a Swift crash log, so you can just feed a raw copy of your stdout/stderr to it and you'll still have all the other output from your program.
There was a problem hiding this comment.
wow - nice! That sounds fantastic!
I'd prefer to include all the details now about how to get to what you critically need to debug your app, but then shift/update this content when that tool is available to reference it preferentially. Holding off on docs because we're going to be getting to it has led us into some traps in the past where timelines just didn't agree with our intentions, and I'd prefer to err on the side of having useful information in a developer's hands.
…eferences, and updates to existing articles to reference the rest
…dding the subsection
…imentation on x86 and aarch64
…uration.md Co-authored-by: Alastair Houghton <alastair@alastairs-place.net>
…ing-a-backtrace.md Co-authored-by: Alastair Houghton <alastair@alastairs-place.net>
b0f44b3 to
c1db945
Compare
…re examples, see ...' reference in the section
backtrace documentation
Summary
resolves #87
Validation
swift package generate-documentation --analyze --warnings-as-errorspassesswift package --disable-sandbox preview-documentationBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.