I'm trying to troubleshoot a Composer command failure, and I'd like to step-through Composer's code so that I can inspect the program state at the time of failure.
Is it possible to run Composer from source, so that PhpStorm can more easily use Xdebug's step through debugging tool?
You can clone source code from repository and use it directly by bin/composer
:
git clone https://github.com/composer/composer.git composer-src
cd composer-src
composer install
bin/composer --version