PhpStorm调试-路径映射配置错误

时间:2020-04-06 12:29:28

标签: php phpstorm xdebug

我正在运行PhpStorm 2019.3.2 Build #PS-193.6015.48, built on January 22, 2020XAMPP 7.4.1.1。我的php / xdebug版本如下:

PHP 7.4.1 (cli) (built: Jan 16 2020 14:02:41) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v2.9.1, 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_autostart = 1
xdebug.idekey = "PHPSTORM"
xdebug.remote_log = "/tmp/xdebug.log"
; host where debug client is running
xdebug.remote_host = "localhost"
; debugger port
xdebug.remote_port = 9030
xdebug.profiler_enable = 0

在PhpStorm中,我有以下设置:

enter image description here

enter image description here

我正在使用Chrome扩展程序通过以下键设置Debug-Cookie:

enter image description here

我的应用程序在/home/marcus/Desktop/Code/todoApp中运行。

但是,当运行调试器时,我只会得到:

Debug session was finished without being paused
                It may be caused by path mappings misconfiguration or not synchronized local and remote projects.
                To figure out the problem check path mappings configuration for 'localhost' server at PHP|Servers or enable Break at first line in PHP scripts option (from Run menu).
                Do not show again

有时候调试器有时会跳入我的php文件(15秒后)。

任何建议为何PhpStorm无法捕获Xdebug会话?

感谢您的答复!

0 个答案:

没有答案