martomo / SublimeTextXdebug

Xdebug debugger client for Sublime Text
MIT License
564 stars 89 forks source link

cli example #178

Closed ghost closed 6 years ago

ghost commented 6 years ago

Can you add a cli example to the readme?

martomo commented 6 years ago

This is already in README, please see the How can I start a debugging session? section.

If you want to run a start a debugging session from command line, before you run your script, you will need to set the environment variable __XDEBUG_CONFIG__ with the IDE key.

Windows

set XDEBUG_CONFIG="idekey=sublime.xdebug"
php myscript.php

UNIX

export XDEBUG_CONFIG="idekey=sublime.xdebug"
php myscript.php