0

出于某种原因,我无法让 Xdebug 在 PhpStorm 中为本地(在我的 Mac 上)TYPO3 9.5 站点工作。它是用 Composer 设置的,站点位于 /Users/myusername/Sites/mysite

Xdebug 已安装并在另一个本地https://fun.test上使用单个测试 index.php 文件运行正常。

我的端口正确,创建了一个“运行/调试”配置作为 PHP 网页,启动 url https://mysite.test。在该配置的服务器(mysite.test 443)上,我包含(也尝试不包含)路径映射。我还在绝对路径中设置了供应商 bin 映射中的符号链接。但无论我尝试什么,我都会得到

调试会话在没有暂停的情况下完成 这可能是由于路径映射配置错误或本地和远程项目不同步造成的。

我观看了视频,但它们是旧 TYPO3 版本的示例,也没有 https,对我不起作用。

任何提示如何让它工作?

更新了部分错误日志

-> <notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" name="error"><xdebug:message filename="file:///Users/myuser/Sites/mysite/var/cache/code/cache_core/ext_localconf_f91d966404f45802fa2d2f505b0b6efa59cfb322.php" lineno="884" type="Notice"><![CDATA[Undefined index: adminpanel_requestcache]]></xdebug:message></notify>

-> <notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" name="error"><xdebug:message filename="file:///Users/myuser/Sites/mysite/public/typo3/sysext/core/Classes/MetaTag/AbstractMetaTagManager.php" lineno="299" type="Notice"><![CDATA[Undefined index: allowedSubProperties]]></xdebug:message></notify>

-> <notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" name="error"><xdebug:message filename="file:///Users/myuser/Sites/mysite/public/typo3/sysext/core/Classes/Utility/GeneralUtility.php" lineno="3913" type="Notice"><![CDATA[Undefined index: makeInstanceService]]></xdebug:message></notify>
4

2 回答 2

0

它现在正在工作。在 PHP 网页“运行/调试配置”,服务器配置中,我在绝对路径中设置了供应商 bin 映射中的符号链接,并输入了所有主“项目文件”文件夹的绝对路径(没有不同,但在那之后工作)。

于 2018-11-05T07:46:27.557 回答
0

根据我的经验,上述错误消息通常是由于

  • 未同步项目。如果您创建了一个远程项目,您 PhpStorm 会保留文件的本地副本(通常在 ~/PhpstormProjects/ 中)。确保您正在调试的文件是同步的(右键单击根目录:部署:从下载)
  • 路径映射不正确

这就是错误消息所说的内容,但直觉上我总是低估了可能的同步问题。

缩小问题范围(以防你的断点没有被命中):

  • 选择“Run: Break at first line in PHP scripts”检查会发生什么
于 2018-11-05T16:23:18.800 回答