title: How to debug in PHPStorm with built in webserver using Symfony command line tool
body: <p>I was able to set up a php web app debugger in PHPStorm by simply tying it to my localhost at a specific port and everything works fine. However for that to work I need to first run this command on the shell:</p>
  
  <pre><code>php app/console server:run --env=dev
  </code></pre>
  
  <p>This works just fine if I set up breakpoints for browsing the site itself or testing api calls from a browser based rest client like <a href="http://www.getpostman.com/">postman</a></p>
  
  <p>However I'm trying to actually set breakpoints for my mobile app (the mobile app sends http calls to the backend app which is a symfony app). Using the web app configuration doesn't work for this one. </p>
  
  <p>Using <a href="http://www.kevwebdev.com/blog/setting-up-a-symfony2-project-in-phpstorm.html#php-interpreter">this</a> tutorial I was able to incorporate the above command line into PHPStorm, so now  I can actually run the code using phpstorm command line tools.</p>
  
  <p>My question is: How can I actually tie the debugger to the command line within PHPStorm? right now when I create a <a href="http://www.jetbrains.com/phpstorm/webhelp/php-built-in-web-server.html">built-in web server</a> in PHPStorm it defaults to using the default php interpreter (i.e If I run the code using the built in web server.. I see this in PHPStorm's console:</p>
  
  <pre><code>/usr/local/Cellar/php54/5.4.28/bin/php -S localhost:8000 -t /project/root/directory
  </code></pre>
  
  <p>What I want instead is something like this:</p>
  
  <pre><code>php app/console server:run --env=dev -S localhost:8000 -t /project/root/directory
  </code></pre>
  
  <p>Any idea how to do that?</p>