title: Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9003
body: <p>My php.ini configuration:</p>
  <pre><code>[XDebug]
  zend_extension = &quot;C:\xampp\php\ext\php_xdebug.dll&quot;   
  xdebug.mode = debug 
  xdebug.remote_autostart = on
  xdebug.profiler_enable = on
  xdebug.profiler_enable_trigger = on
  xdebug.profiler_output_name = cachegrind.out.%t.%p
  xdebug.profiler_output_dir =&quot;c:/xampp/tmp&quot;
  xdebug.show_local_vars=0
  xdebug.remote_host = 127.0.0.1
  xdebug.remote_enable = 1
  xdebug.remote_port = 9003
  xdebug.remote_handler = dbgp
  xdebug.remote_mode = req
  xdebug.profiler_enable=0
  xdebug.profiler_enable_trigger=1
  xdebug.remote_autostart=1
  xdebug.idekey=PHPSTORM
  xdebug.remote_log=&quot;c:/xampp/tmp/xdebug.log&quot;
  </code></pre>
  <p>My launch.json configuration:</p>
  <pre><code>{
      // Use IntelliSense to learn about possible attributes.
      // Hover to view descriptions of existing attributes.
      // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
      &quot;version&quot;: &quot;0.2.0&quot;,
      &quot;configurations&quot;: [
          
          {
              &quot;name&quot;: &quot;Listen for XDebug&quot;,
              &quot;type&quot;: &quot;php&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;port&quot;: 9003
          },
          {
              &quot;name&quot;: &quot;Launch currently open script&quot;,
              &quot;type&quot;: &quot;php&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;program&quot;: &quot;${file}&quot;,
              &quot;cwd&quot;: &quot;${fileDirname}&quot;,
              &quot;port&quot;: 9003
          }
          
  
      ]
  }
  </code></pre>
  <p>but i am still getting this error in error.log:</p>
  <pre><code>[php:notice] [pid 9388:tid 1840] [client ::1:63322] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(, referer: http://localhost/online-store/admin/types/insert-types.php
  </code></pre>
  <p>First I used the port 9000 but it didn't work, then I tried changing the port in php.ini and launch.json to 9003 same as the port in error log but still nothing is happening and XDebug is not working and not stopping on breakpoints.</p>