Remote debugging: http://xdebug.org/docs-debugger.php 一. PHP 安装 Xdebug 模块 先安装这里安装好xdebughttps://i.cnblogs.com/PostDone.aspx?postid=11163117&actiontip=%E5%8F%91%E5%B8%83%E6%88%90%E5%8A%9F 二. PhpStorm 配置 远程debug connections 服务 (远程debug连接还没用到,此方法未实践过...
xdebug.remote_enable=On### 启动远程调试,必须确定 xdebug.remote_host=127.0.0.1### 需要调试的远程主机 xdebug.remote_port=9001### 远程主机与phpstorm通信的端口,必须确定 xdebug.remote_handler=dbgp### 通信协议,optional xdebug.auto_trace=on### ;启用代码自动跟踪,optional xdebug.idekey=PHPSTORM### ...
xdebug.collect_return=on xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9003 xdebug.idekey=PHPSTORM 在配置一个edit configurations phpstorm配置debug断点调试 phpstorm配置debug断点调试 上面配置的test.php文件打上断点测试 phpstorm配置debug断点调试 点击这个...
#添加部分 xdebug.mode=debug xdebug.remote_enable = On xdebug.remote_handler = "dbgp" xdebug.remote_host = "localhost" xdebug.remote_mode = "req" xdebug.remote_port = 9000 xdebug.idekey = "PHPSTORM" 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 重启php-fpm 直接重启php环境,php-fpm也会一...
在PHPStorm中单击“Run”>“Start Listening for PHP Debug Connections”。 在您的浏览器中访问您的PHP应用程序。 PHPStorm将捕获到达断点的请求,并在调试窗口中显示调试信息。 请注意,如果您的PHP应用程序位于虚拟机或远程服务器上,您需要确保PHPStorm可以访问该服务器。您可能需要配置虚拟机或服务器的网络设置以允...
安装默认LNMP架构,php版本选择7.4,其他默认。 php7.4安装xdebug扩展 在配置文件中添加文本 xdebug.mode=debug xdebug.discover_client_host=true xdebug.remote_cookie_expire_time = 3600 xdebug.client_port=9003 xdebug.client_host="192.168.158.1" xdebug.start_with_request=yes xdebug.remote_handler = "dbgp" ...
1 1、检查phpstorm的xdebug配置。这里的debug port要和php.ini里面的xdebug.remote_port相一致!默认是9000,如果9000端口被占用的话,可以改成其他端口。2 设置debug.添加server~swoole.app是我本地的 webserver~ ~3 3.开始调试打好第一个断点,shift + F9就可以了打好第一个断点,选中配置的debug, 按旁边的...
3)配置PHP debug 4)配置臭虫了 开始调试 注意事项: 如果是远程调试,务必要关掉本机的防火墙,或者杀毒软件,可能会禁止访问本机的9001端口,如果是局域网,还要配置虚拟服务器,对外开放9001端口,才能接收xdebug的响应; 另外我觉得我们平时测试的一般带post或者get参数的,这就是我上上个图说的配置了,更复杂的用法和配置...
xdebug.remote_mode = "req" xdebug.remote_port = 9000 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 保存后重启Apache,访问phpinfo页面,得到下面的信息表示已经安装好xdebug。 到phpstorm配置测试:debug端口号要和php.ini中配置的一样 ...
设置xdebug,仅被动触发debug(仅对带cookie:XDEBUG_SESSION=你的idekey 的请求 触发debug): 编辑php.ini,添加或修改以下项: zend_extension="/usr/local/php/modules/"xdebug.default_enable=Onxdebug.collect_params=Onxdebug.collect_vars=Onxdebug.collect_return=Onxdebug.show_local_vars=1xdebug.remote_handler=...