Отладка PhpStorm - неправильная настройка отображений пути - PullRequest
0 голосов
/ 06 апреля 2020

Я бегу PhpStorm 2019.3.2 Build #PS-193.6015.48, built on January 22, 2020 и XAMPP 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

Моя конфигурация xdebug в моем php.ini выглядит следующим образом:

[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-Cook ie со следующим ключом:

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?

Я ценю ваши ответы!

...