title: Xdebug 3 Not Working With PhpStorm and WSL2 (Ubuntu 20.04)
body: <p>Xdebug 3, WSL2 (Ubuntu 20.04) and PhpStorm is my set up. I have no idea what's wrong!</p>
  <p>My ini settings:</p>
  <pre class="lang-ini prettyprint-override"><code>xdebug.mode=debug 
  xdebug.discover_client_host=1 
  xdebug.client_host=10.0.0.107 (windows IP address)
  xdebug.client_port=9003 
  xdebug.idekey=PHPSTORM 
  </code></pre>
  <hr />
  <p>PhpStorm setting screenshots:</p>
  <p><a href="https://i.stack.imgur.com/Y2EMs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y2EMs.png" alt="PhpStorm PHP Debug Settings." /></a></p>
  <p><a href="https://i.stack.imgur.com/Lnykk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lnykk.png" alt="PhpStorm CLI Interpreter" /></a></p>
  <p>Error on Validation:</p>
  <p><a href="https://i.stack.imgur.com/Wa84W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wa84W.png" alt="Web Server Validation" /></a></p>
  <hr />
  <p>Manually click Debug on a specific file in PhpStorm gives me this log:</p>
  <pre><code>[5669] [Step Debug] INFO: Checking remote connect back address.
  [5669] [Step Debug] INFO: Checking header 'HTTP_X_FORWARDED_FOR'.
  [5669] [Step Debug] INFO: Checking header 'REMOTE_ADDR'.
  [5669] [Step Debug] WARN: Could not discover client host through HTTP headers, connecting to configured address/port: 192.168.64.1:9000. :-|
  [5669] [Step Debug] INFO: Connected to debugging client: 192.168.64.1:9000 
  (fallback through xdebug.client_host/xdebug.client_port). :-)
  </code></pre>
  <p>But still my auto breakpoints while browsing site locally or running it through CLI are never triggered.</p>