How can I debug a PHP CLI script with xdebug?
I haven't quite figured this out. EVERY piece of documentation I've found covers how to use xdebug to debug scripts running in Apache. I need to debug a php CLI script. So, for instance, how do I pass the XDEBUG_SESSION_START variable in to get xdebug to kick on? I'm specifically trying to debug a CakePHP shell. So if anyone has any additional insight into that I'd be very appreciative. Thanks. Pascal MARTIN There is a couple of notes about that in Xdebug's manual , like, for instance (quoting) : export XDEBUG_CONFIG="idekey=session_name" php myscript.php If you are using Eclipse PDT to