-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Compiling crates with debugging symbols #13492
Comments
You can compile the core libraries with debug symbols yourself using If it does work, and @michaelwoerister thinks that we're ready, then maybe we could enable (On that note: it would probably be a good idea for us to be able to just enable debugging for the non-compiler libs, since debug info isn't free, and the compiler libraries are already rather large and slow to compile.) |
Currently, using But the RUSTFLAGS solution does not leave much control really and can certainly be improved on. One important constraint to take into account here is that debuginfo doesn't work very well for optimized code. At the same time we may not want to have an unoptimized version of
People working on the compiler might want to have an unoptimized version of In conclusion, this is all a bit more complicated than it might seem at first sight. One way to support all possible scenarios would be to always create all combinations of I'll have to think about this a little more. Any comments are very welcome of course! |
Given that #13213 has been merged, I'm giving this a close. Improvements are always welcome though! |
Rustup r? `@ghost` changelog: none
Rustup r? `@ghost` changelog: none
It would be nice to be able to compile crates (such as "rand") with debugging symbols.
For example if I have :
Then I can put a breakpoint at shuffle by doing :
However I cannot step into shuffle and nagivate the code of shuffle. See https://mail.mozilla.org/pipermail/rust-dev/2014-April/009495.html for more details. Thanks.
The text was updated successfully, but these errors were encountered: