Blogger Information
Blog 2
fans 0
comment 0
visits 24947
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
vscode调试php
明了
Original
2227 people have browsed it

https://xdebug.org/download.php

  1. 下载对应版本的debug放入php/ext/目录下

  2. 修改php.ini

    [Xdebug]
    zend_extension="php_xdebug-2.7.0beta1-7.2-vc15.dll"
    xdebug.remote_enable=on
    xdebug.remote_autostart=1

  3. vscode安装debug插件

  4. vscode中  文件——》首选项——》设置——》用户设置添加(位置根据自己的问题写)

    "php.validate.executablePath": "D:/xampp/php/php.exe"

  5. f5启动调试选择listen for xdebug 然后f9给光标所在行打断点  访问当前的php 恭喜你到了断点。。。。。


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post