我尝试过调试器,但这并没有给我足够的信息。
我也尝试过使用这种方法来调试OctoberCMS,就像使用Laravel一样,但是当我设置一个断点时,它会在index.php停止。此外,我在PhpStorm中尝试了验证脚本,但是它给出了一个404错误。
我正在尝试调试我正在开发的插件,使用像PhpStorm或NetBeans这样的IDE会更容易。任何帮助都将不胜感激。
我通过在PHP网页设置中设置URL:/ phpstorm /public来调试laravel项目,但是当我在我的octobercms项目中尝试一些模拟的东西时,我得到的只是等待连接,这意味着断点永远不会被击中,这是我正在使用的设置。
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port= 9000
xdebug.remote_autostart=1
xdebug.profiler_enable=1
xdebug.profiler_output_dir ="c:/wamp64/tmp/"
xdebug.idekey=PHPSTORM在我的PHP网页中
start URL:/octobercms/backend/rainlab/blog/Posts我还没有在服务器中设置路径映射,因为对于我使用的WAMP64项目没有设置路径映射,我使用的是以下设置-- c:/wamp64/www/octobercms/,这是我的简历主机文件
<VirtualHost *:80>
ServerName octobercms.test
DocumentRoot "c:/wamp64/www/octobercms"
<Directory "c:/wamp64/www/octobercms">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
DirectoryIndex index.php index.html
Require local
</Directory>
</VirtualHost>任何关于我应该在十月使用的设置的建议都是有帮助的。
发布于 2019-09-07 15:13:13
我不确定这是否有帮助,但是经过几次调度之后,我设法让phpstorm停在我选择的断点上
世界上一切都很好,我现在可以试着找出为什么我的插件没有做它应该做的事情。
https://stackoverflow.com/questions/57738329
复制相似问题