Homebrew Formula Sets Step By Step For Debugging

I would like to install the formula step by step, get the folder in which the files are extracted from zip, run configure and do and do the installation with the parameters specified by the formula.

When I run:

brew install -vd formula 

It just shows the result, I would like to stop at every stage. Is it possible?

+7
source share
1 answer

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.

+6
source

All Articles