-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
172 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,34 @@ | ||
# Backtracetk Configuration File | ||
|
||
# `style` sets the backtrace detail level. | ||
# Options: | ||
# - "short" (default): Sets `RUST_BACKTRACE=1` | ||
# - "full": Sets `RUST_BACKTRACE=full` | ||
style = "short" | ||
|
||
# `echo` controls whether backtracetk echoes captured lines. | ||
# - true (default): Captured lines are printed as they are read | ||
# - false: Suppresses output until the program exits | ||
echo = true | ||
|
||
# `env` allows specifying additional environment variables for the child process. | ||
[env] | ||
CLICOLOR_FORCE = "1" # e.g., force ANSI colors | ||
RUST_LIB_BACKTRACE = "0" # e.g., disable lib backtrace | ||
|
||
# `links` configures the emission of hyperlinks for file paths in the backtrace output. | ||
[hyperlinks] | ||
enabled = true # Enable or disable hyperlinking. | ||
url = "vscode://file${FILE_PATH}:{$LINE}:{$COLUMN}" # Template for generating file links. | ||
|
||
# `hide` sections define rules to exclude specific frames from the backtrace output. | ||
# Frames can be hidden based on regex patterns or ranges between start and end patterns. | ||
|
||
# Hide frames matching a specific regex pattern. | ||
[[hide]] | ||
pattern = "panic_macro::fn2" | ||
pattern = "panic_macro::fn2" # Regex pattern to match frames for exclusion. | ||
|
||
# Hide frames within a range defined by start and end regex patterns. | ||
[[hide]] | ||
begin = "core::panicking" | ||
end = "rust_begin_unwind" | ||
begin = "core::panicking" # Start pattern. | ||
end = "rust_begin_unwind" # End pattern (optional). If omitted, hides all subsequent frames. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.