Skip to content

Add documentation regarding how to build Ruby for debugging.#8290

Merged
ioquatix merged 2 commits intoruby:masterfrom
ioquatix:debugging-documentation
Aug 25, 2023
Merged

Add documentation regarding how to build Ruby for debugging.#8290
ioquatix merged 2 commits intoruby:masterfrom
ioquatix:debugging-documentation

Conversation

@ioquatix
Copy link
Copy Markdown
Member

@ioquatix ioquatix commented Aug 25, 2023

Is this the best way @nobu? Do you have any other advice?

@ioquatix ioquatix requested review from jemmaissroff and nobu August 25, 2023 09:25
Comment thread doc/contributing/building_ruby.md Outdated
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
@ioquatix
Copy link
Copy Markdown
Member Author

@nobu do you think --enable-debug-env should set -O0 etc?

@nobu
Copy link
Copy Markdown
Member

nobu commented Aug 25, 2023

Hmmm, now optflags is defaulted to -O3.
I think it's ok to replace the default.

@nobu nobu added the Documentation Improvements to documentation. label Aug 25, 2023
@nobu
Copy link
Copy Markdown
Member

nobu commented Aug 25, 2023

now optflags is defaulted to -O3.

if the compiler is gcc-variant.

@nobu
Copy link
Copy Markdown
Member

nobu commented Aug 25, 2023

Ah, --enable-debug-env?
It is to "enable RUBY_DEBUG environment variable", different purpose.

@ioquatix ioquatix merged commit b2d1c72 into ruby:master Aug 25, 2023
@ioquatix ioquatix deleted the debugging-documentation branch August 25, 2023 21:59
@ioquatix
Copy link
Copy Markdown
Member Author

Thanks @nobu - I believe documentation like this is really helpful. If you have any other ideas let's discuss it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements to documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants