Skip to content
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

Use built-in Ruby debug option vs custom module #715

Merged

Conversation

floehopper
Copy link
Member

The debug mode has become less important in recent years since we stopped monkey-patching the test libraries.

The only downside I can see for this is that we'll see all Ruby debug output when this option is enabled which might obscure Mocha's debug output. However, I think we'll cross that bridge if/when we come to it.

I did consider setting RUBYOPT=-d in the environment entry in .circleci/config.yml to replace MOCHA_OPTIONS=debug. However, this would've cluttered up the CI build output unnecessarily.

Closes #714.

The debug mode has become less important in recent years since we
stopped monkey-patching the test libraries.

The only downside I can see for this is that we'll see *all* Ruby debug
output when this option is enabled which might obscure Mocha's debug
output. However, I think we'll cross that bridge if/when we come to it.

I did consider setting `RUBYOPT=-d` in the `environment` entry in
`.circleci/config.yml` to replace `MOCHA_OPTIONS=debug`. However, this
would've cluttered up the CI build output unnecessarily.

Closes #714.
@floehopper floehopper merged commit 1207992 into main Jan 1, 2025
16 checks passed
@floehopper floehopper deleted the use-built-in-ruby-debug-option-vs-custom-debug-module branch January 1, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider using Ruby's built-in $DEBUG flag instead of Mocha::Debug
1 participant