Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew formula install step by step for debug

I would like to install a formula step by step, get the folder where the files are extracted from the zip, run configure, and do make and make install with the options set by the formula.

When I run:

brew install -vd formula

It justs show the output, I would like to stop at each stage. It is possible ?

like image 361
Kirell Avatar asked Dec 19 '12 13:12

Kirell


1 Answers

Homebrew will automatically give you a chance to inspect things when something goes wrong in the installation. Therefore, all you have to do to let yourself poke around is to force something to go wrong at whatever point you wish. For example, you could include this in your formula:

system "false"

Homebrew will present a menu asking you want you want to do. Choose the "shell" option to inspect the build environment.

You might also try running the brew command in the Ruby debugger. Then you can set breakpoints wherever you wish.

like image 72
Rob Kennedy Avatar answered Oct 14 '22 04:10

Rob Kennedy