phpstrom 与 xdebug 配合实现PHP单步调试

不说废话,直接开始。php

第一步: 安装并配置xdebugphpstorm

  1.   安装
      能够从官网直接下载对应php版本的xdebug,下载地址:  https://xdebug.org/download.php 
  2.   配置,典型的配置以下:

    zend_extension="xxxxx"  // xdebug地址ide

    xdebug.remote_enable = Ondebug

    xdebug.remote_connect_back = 1orm

    xdebug.remote_host= client_ip_address  // 客户端ip地址ip

    xdebug.remote_port = 9000 // 端口号,phpstorm中默认为9000,这里须要和客户端端口号对应rem

    xdebug.idekey = PHPSTORM // 这里须要和客户端配置一致it

第二步:配置phpstormio

  1. File-》Settings-》Languages & Frameworks -》 PHP -》 Debug



  2. 打开Phpstorm 主面板 ,按下图所示配置debug参数







  3.  打开Phpstorm 的debug

3、设置断点 and enjoy it !cli

相关文章
相关标签/搜索