小编Ano*_*p D的帖子

使用 Vim 进行 Xdebug 配置

我在 Ubuntu 20.04 上使用 php 7.4.18 和 apache,其文档根位于/var/www/html. 这是我的 php --version

PHP 7.4.18 (cli) (built: May  3 2021 11:27:06) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.18, Copyright (c), by Zend Technologies
    with Xdebug v3.0.3, Copyright (c) 2002-2021, by Derick Rethans
Run Code Online (Sandbox Code Playgroud)

我的 xdebug.ini

zend_extension=xdebug.so
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_mode = req
xdebug.remote_port = 9000
Run Code Online (Sandbox Code Playgroud)

我的.vimrc

let g:vdebug_options = {"port": …
Run Code Online (Sandbox Code Playgroud)

php vim xdebug

1
推荐指数
1
解决办法
982
查看次数

标签 统计

php ×1

vim ×1

xdebug ×1