首页 > 软件开发 > PHP >

XDebug搭建php调试环境

来源:互联网 2023-03-16 18:50:13 308

php调试环境搭建Cfq办公区 - 实用经验教程分享!

工具/原料

  • zendStudio10
  • xampp

方法/步骤

  • 1

    下载xampp-win32-5.6.3-0-VC11-installer.exe,zendStudio10,并安装.Cfq办公区 - 实用经验教程分享!

  • 2

    修改xampp/apache/httpd.conf,改为工程所在的目录:Cfq办公区 - 实用经验教程分享!

    DocumentRoot "F:/php/workspace"Directory "F:/php/workspace">Cfq办公区 - 实用经验教程分享!

  • 3

    修改php.inf,最后增加:Cfq办公区 - 实用经验教程分享!

    [XDebug]zend_extension = "F:/php/xampp/php/ext/php_xdebug.dll";zend_extension_ts="c:/php/ext/php_xdebug.dll"xdebug.remote_enable=1;IPxdebug.remote_host=127.0.0.1;portxdebug.remote_port=9001;無程處理xdebug.remote_handler=dbgp;xdebug配置;开启自动跟踪xdebug.auto_trace = On;开启异常跟踪xdebug.show_exception_trace = On;开启远程调试自动启动xdebug.remote_autostart = On;开启远程调试;收集变量xdebug.collect_vars = On;收集返回值xdebug.collect_return = On;收集参数xdebug.collect_params = OnCfq办公区 - 实用经验教程分享!

  • 4

    配置环境变量:path: F:\php\xampp\php\extCfq办公区 - 实用经验教程分享!

  • 5

    配置zend:Cfq办公区 - 实用经验教程分享!

    XDebug搭建php调试环境Cfq办公区 - 实用经验教程分享!

    XDebug搭建php调试环境Cfq办公区 - 实用经验教程分享!

    XDebug搭建php调试环境Cfq办公区 - 实用经验教程分享!

  • 6

    打断点,工程上右键,debug as php web applicationCfq办公区 - 实用经验教程分享!

  • 注意事项

    • 使用zendStudio,本人使用phpeclipse死活不能成功

    以上方法由办公区教程网编辑摘抄自百度经验可供大家参考!Cfq办公区 - 实用经验教程分享!


    标签: PHP

    办公区 Copyright © 2016-2023 www.bgqu.net. Some Rights Reserved. 备案号:湘ICP备2020019561号统计代码