title: Xdebug not working [not stopping at breakpoint] on Ubuntu 18.04, PhpStorm, Zend Framework 3
body: <p>I'm using Zend Framework 3 with PhpStorm, I setup LAMP on Ubuntu 18.04.</p>
  
  <p>When debugging code, I turn on debug icon [extension] in Chrome browser, then turn on start listening in PhpStorm, then I put breakpoints at homepage controller method from where the page loading, and then I refresh the page to check if it stops at the breakpoints.</p>
  
  <p>I am not sure what I have missed in the setting, not able to debug the code. Any help is much appreciated. </p>
  
  <p><strong>etc/php/7.2/mods-available/xdebug.ini</strong></p>
  
  <pre><code>xdebug.show_error_trace = 1
  zend_extension=/usr/lib/php/20170718/xdebug.so
  xdebug.remote_autostart = 1
  xdebug.remote_enable = 1
  xdebug.remote_handler = dbgp
  xdebug.remote_host = 127.0.0.1
  xdebug.remote_log = /tmp/xdebug_remote.log
  xdebug.remote_mode = req
  xdebug.remote_port = 9001
  xdebug.idekey = PHPSTORM
  xdebug.remote_connect_back=1
  </code></pre>
  
  <p><strong>etc/php/7.2/apache2/php.ini</strong></p>
  
  <pre><code>[xdebug]
  xdebug.remote_enable = 1
  xdebug.remote_autostart = 1
  </code></pre>
  
  <p><strong>PHP version details :</strong></p>
  
  <pre><code>shoebaamir123@ubuntu:~$ php -v
  PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
  Copyright (c) 1997-2018 The PHP Group
  Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
      with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
      with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6Slja.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Slja.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/SWO0g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SWO0g.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/AvSnb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AvSnb.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0KS2b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0KS2b.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/eHEuB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eHEuB.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/5jbW3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5jbW3.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/9xKWV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9xKWV.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/bAD04.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bAD04.png" alt="enter image description here"></a></p>