Search code examples
phpphpstormxdebuglamppubuntu-20.04

Debug session was finished without being paused


In my Laravel project using PhpStorm (2018.1) I am not able to debug my session using xdebug (2.9.5). Any breakpoint gets ignored and session ends without being paused. If I set Break at first line in PHP scripts then session stops at index.php file. I am using Ubuntu 20.04.

PHP 7.4.5 (cli) (built: Apr 23 2020 08:10:29) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v2.9.5, Copyright (c) 2002-2020, by Derick Rethans

This are my settings for xdebug in php.ini

[xdebug]
zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9001
xdebug.remote_log="/tmp/xdebug.log"

I have some PhpStorm settings: enter image description here

enter image description here

enter image description here

What am I missing here?

I also have Xdebug helper extension in my Chromium but it seems to have the same effect with it enabled as well as disabled.


Solution

  • In my Laravel project using PhpStorm (2018.1) I am not able to debug my session using xdebug (2.9.5).

    It just triggered:

    • PhpStorm 2018.1
    • Xdebug 2.9.5

    You have to upgrade PhpStorm. You need PhpStorm 2018.3 or newer in order to be able to work with Xdebug 2.7 or newer.

    The problem is in changed XML namespace in Xdebug protocol, as of Xdebug 2.7 (https instead of http). It's fixed/supported since PhpStorm 2018.3 (see WI-43622).

    With your current IDE version you may work with Xdebug 2.6.x max (which does not support PHP 7.4).