title: PHP debugging in IntelliJ IDEA
body: <p>Ok, I'm probably stupid but I cannot make it to work.</p>
  
  <p>The setup is:</p>
  
  <ul>
  <li>Ubuntu</li>
  <li>apache2</li>
  <li>xdebug</li>
  <li>IntelliJ IDEA 11.1.3 Ultimate</li>
  <li>IntelliJ IDEA PHP Plugin</li>
  </ul>
  
  <p>xdebug is installed.</p>
  
  <p>I would like to debug Drupal site, on my local machine, the project is here:</p>
  
  <pre><code>/var/www/luken/my-site
  </code></pre>
  
  <p>and URL is here:</p>
  
  <pre><code>http://localhost/luken/my-site
  </code></pre>
  
  <p>Because I couldn't create a project from existing sources, I created new project (web module) from scratch there. Now the thing is that if I'm running configuration for "PHP Script" - debugger works. But if I try to use configuration for PHP Web Application (so project would be opened in browser) it cannot connect to debugger. I tried a lot of things, and different mappings but obviously I'm missing something stupid. How configuration should look with above setup?</p>