title: XDebug: how to debug remote console application?
body: <p>I have read this docs: <a href="http://xdebug.org/docs/remote" rel="noreferrer">http://xdebug.org/docs/remote</a></p>
  
  <p>I can debug my web application.<br>
  But the debugger doesn't launch for console command.</p>
  
  <p>My .ini file for XDebug (it works):</p>
  
  <pre><code>$ cat /etc/php5/fpm/conf.d/xdebug.ini
  zend_extension=/usr/lib/php5/20090626/xdebug.so
  xdebug.idekey="PHPSTORM"
  xdebug.remote_connect_back=1
  xdebug.remote_enable=1
  </code></pre>
  
  <p>.ini file for <code>cli</code> is the same.</p>
  
  <p>Also I tried to add <code>export XDEBUG_CONFIG="idekey=PHPSTORM remote_enable=1 remote_connect_back=1"</code> before debugging, but it didn't help.</p>
  
  <p>How can I enable it?</p>