phpStorm 10 断点调试

下载 Xdebug

准备阶段

在localhost下添加一个phpinfo.php的文件

<?php phpinfo(); ?>
在浏览器访问http://localhost/phpinfo.php,显示如下:

Ctrl+A选择所有文本,Ctrl+C复制。

Xdebug 官网下载合适的 dll文件

打开窗口:http://xdebug.org/wizard.php,把文本添加到输入框,如图:

之后如图:按照Instructions一步一步操作。

设置php.ini

官网文档:https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html

下载Xdebug helper

chrome 网上应用商店 https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc?hl=zh-CN

配置,选择 phpStorm,把网址的域名加入白名单。

之后访问白名单里的站点,就可以看到如下:

下载 phpStorm

破解

官网下载:https://www.jetbrains.com/phpstorm/download/#section=windows-version 注册时选择 License server,填写 http://idea.lanyus.com/

配置php环境

配置 debug

保证端口号和php.in中的一致,如果没有设置端口,默认就是9000。

设置DBGp Proxy

设置 PHP Web Application

设置 server

添加配置,在 phpStorm 右上角,选择Edit Configurations...,然后配置站点

断点调试

Start Listening for PHP Debug Connections

设置断点

访问该Action

phpStorm 会自动弹出,我们这样查看变量:

大功告成!

猜你喜欢

转载自blog.csdn.net/u014376739/article/details/79269799
今日推荐