Homebrew will automatically give you the opportunity to check when something goes wrong during the installation process. So all you have to do to allow yourself to poke is to make something go wrong. For example, you can include this in the formula:
system "false"
Homebrew will present the menu in which you want what you want. Select the shell option to test the build environment.
You can also try running the brew command in the Ruby debugger . You can then set breakpoints wherever you wish.
Rob kennedy
source share