How to Debug PHP Script From the CLI with PHP-XDEBUG

TL;DR Set your IDE to listen for incoming connections On the CLI set the session key, Set XDEBUG configuration (can be set as environment variables or in-line parameters) PS. set remote_host IP to the...