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"

  • 相关阅读:
    点击按钮在表格的某一行下,在添加一行(HTML+JS)
    13
    12 stark组件之pop,按钮,url,页面
    11 stark组件之delete按钮、filter过滤
    解决 AttributeError: 'ForeignKey' object has no attribute 're'
    360面经
    4 django篇
    0- 26个面试经典问题回答
    如何学习??
    LeetCode
  • 原文地址:https://www.cnblogs.com/eleven24/p/7474609.html
Copyright © 2011-2022 走看看