PhpStorm 破解及 XDebug 调试

时间:2022-03-27 07:51:37

PhpStorm 破解及 XDebug 调试

PhpStorm 破解

PhpStorm 10.0.2 破解 地址:http://jingyan.baidu.com/article/20095761cbef40cb0721b417.html (亲测有效)
PhpStorm 9 注册码 key license 地址:http://www.phpjiayuan.com/87/446.html

XDebug 调试

理解

远程调试的意思是客户端网页浏览服务器地址源码,在客户端可以直接调试服务器端代码运行情况。
1. 在服务器端安装 XDebug ,并且配置路径。
2. 在客户端安装 phpstorm 配置调试路径

服务器端

一, 安装 XDebug 
1. 下载xdebug。访问http://xdebug.org/download.php,下载对应的xdebug源代码。
2. tar -xvf xdebug-2.3.2.tgz
3. cd xdebug
4. 运行php目录/bin/phpize
5. 配置./configure –enable-xdebug –with-php-config=/php的bin路径/php-config
6. make
7. make install

二, 配置 XDebug
在php.ini文件中增加如下配置:

[xdebug]
xdebug.idekey=PHPSTORM xdebug.remote_connect_back = 1 //如果开启此,将忽略下面的 xdebug.remote_host 的参数 xdebug.remote_host=10.129.157.29 //注意这里是,客户端的ip<即IDE的机器的ip,不是你的web server> xdebug.remote_enable=on xdebug.remote_port = 9000 //注意这里是,客户端的端口<即IDE的机器的ip,不是你的web server>
客户端
  1. 配置 php 路径
    PhpStorm 破解及 XDebug 调试
  2. Debug端口号设置(根据你服务器设置的端口号来设置)
    PhpStorm 破解及 XDebug 调试
  3. 配置一个Server
    PhpStorm 破解及 XDebug 调试
  4. 在“Run->Edit Configurations…”中配置如下
    PhpStorm 破解及 XDebug 调试
  5. 如下图,打开监听,然后设置断点
    PhpStorm 破解及 XDebug 调试
  6. 在浏览器中输入网址(或者按 shift + F9 进入调试界面),就能看到PhpStorm停在断点上了
    PhpStorm 破解及 XDebug 调试

参考博客