-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Retain debug information in a separate file #39
Conversation
@jan-auer very neat (and thoughtful)! |
@jan-auer I'm not super familiar with using rust with a debugger. How would I test this out? |
@softprops Are you asking for how to verify that this setup works or how to use a debugger in general for Rust? In debug builds, the easiest way to verify that debug information is available is to cause a panic and set On Linux, Rust's internal backtrace library cannot resolve debug information once it has been stripped into a separate file. The most basic way I can think of right now is to use |
That works for me. Thanks! |
It would be nice if this could somehow respect This would be nice for cases such as Sentry, where you might want the debug info in production while also releasing an optimized binary; it doesn't seem like the |
@jan-auer since this release I'm seeing |
@maxcountryman good tip! |
This is a little harder, as there are multiple ways to enable debug information in release builds. Another is just by exporting
Sorry, I might have missed this when testing. You can probably just remove the |
no worries. I don't think it has a negative impact. I can follow up. |
Build arm64 image on GitHub Actions
This is intended to provide a fix for softprops/serverless-rust#49.
The current build script unconditionally invokes
strip
on the build output, which removes all debug information. There are two cases, in which debug information is desirable, however:With this patch, debug information is retained in dev builds. Note that this makes the resulting binary significantly larger, but is more suitable for testing. In release builds, debug information is moved into
bootstrap.debug
next tobootstrap.zip
. Developers can use this for debugging.