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

Add copious debugging with --debug #2555

Merged
merged 1 commit into from
Jan 28, 2014

Conversation

rolandwalker
Copy link
Contributor

  • add new file cask/utils.rb analogous to utils.rb in Homebrew
  • define odebug and odumpcask, analogs of ohai and friends, but
    which only give output when --debug is in effect
  • move the debug setting from an instance variable in Cask::CLI
    to a method Cask.debug, defined in lib/cask/options.rb, which
    was added in Implement binary artifact #2276. (Perhaps options.rb should be merged back
    into Cask::CLI).
  • sprinkle odebug statements liberally throughout the codebase
  • update tests

The intention is to provide output which might be useful to Cask authors, to
see where things go awry, or for users and Cask authors to produce gists
for developers.

@phinze
Copy link
Contributor

phinze commented Jan 28, 2014

I love sprinkles! 🍨 🍰

If you update this for conflicts I'm good to merge this - you can go ahead and merge when it's updated. 👍

- add new file "cask/utils.rb" analogous to "utils.rb" in Homebrew
- define odebug and odumpcask, analogs of ohai and friends, but
  which only give output when --debug is in effect
- move the debug setting from an instance variable in Cask::CLI
  to a method Cask.debug, defined in "lib/cask/options.rb", which
  was added in Homebrew#2276. (Perhaps options.rb should be merged back
  into Cask::CLI).
- sprinkle odebug statements liberally throughout the codebase
- update tests
rolandwalker added a commit that referenced this pull request Jan 28, 2014
Add copious debugging with `--debug`
@rolandwalker rolandwalker merged commit 763b809 into Homebrew:master Jan 28, 2014
@rolandwalker rolandwalker deleted the add_debugging branch January 28, 2014 15:21
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants