php - PhpStorm 调试 - 路径映射配置错误
问题描述
我正在跑步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 中,我有以下设置:
我正在使用 Chrome 扩展程序使用以下键设置 Debug-Cookie:
我的应用程序在/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 会话的任何建议?
感谢您的回复!
解决方案
推荐阅读
- performance - 有效地检查 FP 位模式是否为整数。在多种条件下更快地分支一次?
- java - Liferay Maven 服务构建器失败
- javascript - Vuetify 组件 v-text-field 没有获得类
- sql - SQL - 查询结果存储在列中
- docker - 如何退出让 docker 容器运行(在 jenkins 中)
- angular - Angular:Guards Auth Service 未按预期工作
- foreign-keys - Android Room - 依赖表中的 CASCADE 用于 DELETE 并保持不可触摸以进行 INSERT 操作?
- c++ - 警告 C4477“wprintf_s”:格式字符串“%s”需要“wchar_t *”类型的参数
- docker - gitlab-ci 运行 mariadb 服务未设置 MYSQL_ROOT_PASSWORD
- draw - 如何编写一个函数来绘制图片?我使用一些方法。但它需要改进