Php 在Netbeans中使用带有TYPO3的XDebug时出现问题(Vagrant Machine中的符号链接)
我想要的是在带有Netbeans的本地开发环境中使用XDebug调试TYPO3代码 我得到的是:Php 在Netbeans中使用带有TYPO3的XDebug时出现问题(Vagrant Machine中的符号链接),php,netbeans,vagrant,typo3,xdebug,Php,Netbeans,Vagrant,Typo3,Xdebug,我想要的是在带有Netbeans的本地开发环境中使用XDebug调试TYPO3代码 我得到的是: 马科斯山脉 Netbeans 8.2 流浪汉1.8.7 Virtualbox 5.1.26 LAMP堆栈(Debian Stretch、Apache 2.4、PHP-FPM 7.0、MariaDB 10.1) Typo3 8.7.6(标准模式非作曲家) Typo3的文件夹结构与建议的相同 /typo3_src-8.7.6 /typo3/typo3_src -> ../typo3_src-8
- 马科斯山脉
- Netbeans 8.2
- 流浪汉1.8.7
- Virtualbox 5.1.26
- LAMP堆栈(Debian Stretch、Apache 2.4、PHP-FPM 7.0、MariaDB 10.1)
- Typo3 8.7.6(标准模式非作曲家)
/typo3_src-8.7.6
/typo3/typo3_src -> ../typo3_src-8.7.6
/typo3/index.php -> typo3_src/index.php
/typo3/typo3 -> typo3_src/typo3
相应的XDebug参数为
php_admin_value[xdebug.remote_enable] = 1
php_admin_value[xdebug.remote_host] = 192.168.33.1
php_admin_value[xdebug.remote_port] = 9000
php_admin_value[xdebug.remote_handler] = dbgp
php_admin_value[xdebug.max_nesting_level] = 400
Netbeans中的PHP项目在“运行配置”>“高级..”下设置了以下路径映射:
Netbeans正在监听端口9000和XDebug。启动调试时,相应的xdebug.log显示成功:
Log opened at 2017-09-16 08:17:52
I: Connecting to configured address/port: 192.168.33.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/html/typo3_src-8.7.6/index.php" language="PHP" ..></init>
然后,当设置“在第一行停止”时,Netbeans至少停止/typo3/index.php。但它仍然不会在/typo3/typo3conf/ext/…下的自定义typo3扩展中的自定义断点处停止。当用真正的源代码(index.php和typo3)替换所有符号链接时,调试工作就像一个符咒
有没有办法解决默认TYPO3 8 LTS安装的符号链接的这些路径映射问题?我怀疑您的映射不正确。您的站点根目录位于/var/www/html/typo3中,而您输入的是CMS/var/www/html/typo3/typo3,这是否正确 如果是这样,映射应该如下所示:
Server Path Project Path
/var/www/html/typo3 /Users/{me}/{project}/typo3
/var/www/html/typo3_src-8.7.6 /Users/{me}/{project}/typo3/typo3
/var/www/html/typo3_src-8.7.6/index.php /Users/{me}/{project}/typo3/index.php
我怀疑你的映射不正确。您的站点根目录位于/var/www/html/typo3中,而您输入的是CMS/var/www/html/typo3/typo3,这是否正确 如果是这样,映射应该如下所示:
Server Path Project Path
/var/www/html/typo3 /Users/{me}/{project}/typo3
/var/www/html/typo3_src-8.7.6 /Users/{me}/{project}/typo3/typo3
/var/www/html/typo3_src-8.7.6/index.php /Users/{me}/{project}/typo3/index.php
如果添加此路径映射是否有帮助?:
/var/www/html/Users/{me}/{project}
还要确保端口9000未在其他地方使用,请尝试其他端口,例如9001。如果添加此路径映射是否有帮助?:/var/www/html/Users/{me}/{project}
还要确保端口9000未在其他地方使用,请尝试其他端口,例如9001
Server Path Project Path
/var/www/html/typo3 /Users/{me}/{project}/typo3
/var/www/html/typo3_src-8.7.6 /Users/{me}/{project}/typo3/typo3
/var/www/html/typo3_src-8.7.6/index.php /Users/{me}/{project}/typo3/index.php