zoukankan      html  css  js  c++  java
  • phpstorm xdebug配置

    1、首先配置debug监听的端口

    如下,在右端的Xdebug下面的Debug port写8000,(其他也是可以的,但是要和php.ini里面的配置一样)。

    2、配置DBGp proxy,这里的端口和上面的一样,IDE key和php.ini配置一样,host是要监听的域名

    3、添加新的debug配置

    4、新建debug Server,点击上图Server最右边的省略号

    5、phpstorm开启监听,点击右上角的听筒,绿色为监听状态

    6、打断点

    7、php配置(需要根据具体情况更改)

    [XDebug]
    zend_extension=php_xdebug.dll xdebug.profiler_output_dir="C:aiprogramsphpStudy mpxdebug" xdebug.trace_output_dir="C:aiprogramsphpStudy mpxdebug" ;zend_extension="C:aiprogramsphpStudyphpphp-5.6.27-ntsextphp_xdebug.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" ; xdebug.remote_mode = "req" xdebug.remote_port = 8000 xdebug.idekey= PHPSTROM
    xdebug.remote_autostart=1

    启用调试可以点击右上的debug按钮,ide会自动读取当前选取的debug配置在浏览器打开对应的url,并且会在断点处停下。

    PHP Warning: Xdebug MUST be loaded as a Zend extension:

    zend_extension="/usr/local/Cellar/php71/7.1.12_23/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so"

  • 相关阅读:
    bzoj3993: [SDOI2015]星际战争
    bzoj3583: 杰杰的女性朋友 && 4362: Graph
    bzoj2260: 商店购物 && 4349: 最小树形图
    老oj3444 && Pku3241 Object Clustering
    bzoj3754: Tree之最小方差树
    bzoj2215: [Poi2011]Conspiracy
    老oj曼哈顿最小生成树
    bzoj2180: 最小直径生成树
    棋盘问题
    油田 Oil Deposits
  • 原文地址:https://www.cnblogs.com/eleven24/p/7474609.html
Copyright © 2011-2022 走看看