-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[feat] should document on how to support backtrace when size optimize #14611
Comments
There is already documentation, can you suggest an improvement? https://doc.rust-lang.org/cargo/reference/profiles.html If you want to keep backtrace info intact then try: debug = "line-tables-only"
strip = "debuginfo" |
Actually, [profile.reproduce]
inherits = "release"
debug = "line-tables-only"
strip = "debuginfo"
|
Then try If a function is inlined then it essentially doesn't exist in the final binary. Therefore you need more debug information to reconstruct the full trace. |
In any case, this isn't a Cargo issue. The |
Emm, [profile.reproduce]
inherits = "release"
debug = "limited"
strip = "debuginfo"
|
Agree with Chris. Since the same issue has been opened twice, let's keep the discussion in one place. Close in favor of rust-lang/backtrace-rs#675. |
Problem
When use size optimize config, backtrace is not working.
When use backtrace working config, size is much larger than size optimize config.
Proposed Solution
Should document on how to find a balance like something like below.
Notes
feat on backtrace side
rust-lang/backtrace-rs#675
The text was updated successfully, but these errors were encountered: