怎么跟踪php代码,第九节 PHP 跟踪调试代码 XDebug
>[success] # PHP 跟蹤調試代碼 XDebug
- [下載XDebug擴展](https://xdebug.org/download.php)
- 下載對應PHP版本的Xdebug

- 線程安全(TS)和非線程安全(NTS)

- 安裝Xdebug擴展-php.ini
```
[XDebug]
xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"
xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug"
zend_extension="D:\phpStudy\php\php-7.1.7-nts-64\ext\php_xdebug-2.5.3-7.1-vc14-nts-x86_64.dll"
xdebug.idekey=PHPSTORM
xdebug.remote_port=9005
xdebug.remote_enable=on
```
- 配置PHPStorm


- 配置Debug

- 運行Debug

- 調試

- return 處 Step into F7 跳進去
> ### 相關閱讀
- [為PHPStorm配置Xdebug調試環境](http://blog.csdn.net/zhyh1986/article/details/45172685)
- [Configure Xdebug Helper for Chrome to be used with PhpStorm](https://confluence.jetbrains.com/display/PhpStorm/Configure+Xdebug+Helper+for+Chrome+to+be+used+with+PhpStorm)
總結
以上是生活随笔為你收集整理的怎么跟踪php代码,第九节 PHP 跟踪调试代码 XDebug的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Redmi骁龙8+机皇曝光:2K屏幕加持
- 下一篇: 未来计算机论文1500,致未来的自己作文