Xdebug PhpStorm : Waiting for incoming connection with ide key 4
<p>I searched online and followed all of them. It still didn't work. xdebug works on a script file but does not work on web application and <code>xdebug.log</code> is empty.</p>

<p><a href="https://i.stack.imgur.com/1oUXy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1oUXy.png" alt="my php.ini file:"></a></p>

<pre><code>phpinfor():
xdebug support       enabled
version              2.2.3
ide key              11047
</code></pre>

<p>I started listening for PHP debug connections. </p>

<p><a href="https://i.stack.imgur.com/ZaZeI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZaZeI.png" alt="debug session example here."></a></p>

<p>It worked before I setup XDEBUG_SESSION_START.</p>

<p>Here is my xdebug.log file:</p>

<pre><code>Log opened at 2016-03-30 19:13:03
I: Connecting to configured address/port: 127.0.0.1:9001.
I: Connected to client. :-)
-&gt; &lt;init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///root/marketriders/public/index.php" language="PHP" protocol_version="1.0" appid="4476" idekey="17624"&gt;&lt;engine version="2.2.3"&gt;&lt;![CDATA[Xdebug]]&gt;&lt;/engine&gt;&lt;author&gt;&lt;![CDATA[Derick Rethans]]&gt;&lt;/author&gt;&lt;url&gt;&lt;![CDATA[http://xdebug.org]]&gt;&lt;/url&gt;&lt;copyright&gt;&lt;![CDATA[Copyright (c) 2002-2013 by Derick Rethans]]&gt;&lt;/copyright&gt;&lt;/init&gt;

&lt;- feature_set -i 1 -n show_hidden -v 1
-&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="show_hidden" success="1"&gt;&lt;/response&gt;

&lt;- feature_set -i 2 -n max_depth -v 1
-&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_depth" success="1"&gt;&lt;/response&gt;

&lt;- feature_set -i 3 -n max_children -v 100
-&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="max_children" success="1"&gt;&lt;/response&gt;

&lt;- status -i 4
-&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="status" transaction_id="4" status="starting" reason="ok"&gt;&lt;/response&gt;

&lt;- step_into -i 5
-&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="5" status="stopping" reason="ok"&gt;&lt;/response&gt;

&lt;- breakpoint_set -i 6 -t line -f file:///root/marketriders/public/index.php -n 30
-&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="6"&gt;&lt;error code="5"&gt;&lt;message&gt;&lt;![CDATA[command is not available]]&gt;&lt;/message&gt;&lt;/error&gt;&lt;/response&gt;

Log closed at 2016-03-30 19:13:03
</code></pre>

<p>Any suggestion and comments are appreciated.</p>