title: Symfony 4 Xdebug not working with REST API
body: <p>I have a problem with Xdebug, like everything installed correctly, I put a breakpoint, but nothing happens, i.e. despite the breakpoint, the debugger doesn't stop.</p>
  
  <p>My /etc/php/7.4/apache2/conf.d/20-xdebug.ini config</p>
  
  <pre><code>zend_extension=/usr/lib/php/20190902/xdebug.so
  xdebug.remote_enable = 1
  xdebug.remote_port = 9000
  xdebug.idekey = PHPSTORM
  xdebug.show_error_trace = 1
  xdebug.remote_autostart = 0o
  </code></pre>
  
  <p>When I execute <code>php -v</code> i got:</p>
  
  <pre><code>PHP 7.4.6 (cli) (built: May 14 2020 10:03:28) ( NTS )
  Copyright (c) The PHP Group
  Zend Engine v3.4.0, Copyright (c) Zend Technologies
      with Zend OPcache v7.4.6, Copyright (c), by Zend Technologies
      with Xdebug v2.9.5, Copyright (c) 2002-2020, by Derick Rethans
  </code></pre>
  
  <p>My PhpStorm settings:</p>
  
  <p><a href="https://i.stack.imgur.com/Xwfvp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xwfvp.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/K9j4b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K9j4b.png" alt="enter image description here"></a></p>
  
  <p>I set breakpoint in PhpStorm:</p>
  
  <p><a href="https://i.stack.imgur.com/Z8KvN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z8KvN.png" alt="enter image description here"></a></p>
  
  <p>I'm writing a REST API suing Symfony 4 and using Postman to send a request and would like to debug the code.</p>
  
  <p>Any idea? How can I debug my REST API?</p>