调试会话已完成而没有暂停

问题描述 投票:0回答:1

在使用PhpStorm(2018.1)的Laravel项目中,我无法使用xdebug(2.9.5)调试会话。任何断点都会被忽略,并且会话会在不暂停的情况下结束。如果我设置PHP脚本第一行的中断,则会话将在index.php文件处停止。我正在使用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

这是我在php.ini中对xdebug的设置

[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"

我有一些PhpStorm设置:enter image description here

enter image description here

enter image description here

我在这里想念什么?

我在Chromium中也有Xdebug helper扩展,但是启用和禁用它似乎都具有相同的效果。

php phpstorm xdebug lampp ubuntu-20.04
1个回答
0
投票

在我的使用PhpStorm(2018.1)的Laravel项目中,我无法使用xdebug(2.9.5)调试会话。

它刚刚触发:

  • PhpStorm 2018.1
  • Xdebug 2.9.5

您必须升级PhpStorm。 您需要PhpStorm 2018.3或更高版本才能使用Xdebug 2.7或更高版本。

问题出在Xdebug 2.7(从https代替http)的Xdebug协议中,XML命名空间已更改。自PhpStorm 2018.3起已修复/受支持(请参阅WI-43622)。

在当前的IDE版本中,您可以使用Xdebug 2.6.x max(不支持PHP 7.4)。

© www.soinside.com 2019 - 2024. All rights reserved.