swift-backtrace icon indicating copy to clipboard operation
swift-backtrace copied to clipboard

Introduce a new 'colored' Backtrace format

Open natinusala opened this issue 2 years ago • 11 comments

This allows customizing the printed backtrace format, and separates backtrace formatting (platform agnostic) and printing (platform specific).

The current format is now called full and I made a new one called colored (I'm not quite happy with the name, I'm open to suggestions) with colors and a newline between the function name and file. It's easier on the eyes when reading on a small integrated terminal. It also removes the top 4 stack entries that are mostly irrelevant (since they belong to either Backtrace or libc / Windows CRT).

This has been tested and works fine on both Linux and Windows.

natinusala avatar Dec 22 '22 12:12 natinusala

Can one of the admins verify this patch?

swift-server-bot avatar Dec 22 '22 12:12 swift-server-bot

Can one of the admins verify this patch?

swift-server-bot avatar Dec 22 '22 12:12 swift-server-bot

Can one of the admins verify this patch?

swift-server-bot avatar Dec 22 '22 12:12 swift-server-bot

Can one of the admins verify this patch?

swift-server-bot avatar Dec 22 '22 12:12 swift-server-bot

Can one of the admins verify this patch?

swift-server-bot avatar Dec 22 '22 12:12 swift-server-bot

Can one of the admins verify this patch?

swift-server-bot avatar Dec 22 '22 12:12 swift-server-bot

Can one of the admins verify this patch?

swift-server-bot avatar Dec 22 '22 12:12 swift-server-bot

Can one of the admins verify this patch?

swift-server-bot avatar Dec 22 '22 12:12 swift-server-bot

Can one of the admins verify this patch?

swift-server-bot avatar Dec 22 '22 12:12 swift-server-bot

Can one of the admins verify this patch?

swift-server-bot avatar Dec 22 '22 12:12 swift-server-bot

Hi there, we're currently investing into "solving backtraces" in the swift runtime itself, some news here: https://forums.swift.org/t/backtraces-in-swift/61736

So I don't think we necessarily want to be adding much more functionality in this project, rather, we're slowly sunsetting it.

Perhaps such format improvements are something that can be brought up in the thread I linked, to make sure the format of the official output is as nice as you'd hope it to be?

ktoso avatar Jan 04 '23 22:01 ktoso