; conf/conf.d/docker-php-ext-xdebug.ini
; 此文件映射到 /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
[XDebug]
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_port=19900;xdebug的远程端口
xdebug.remote_handler=dbgp;
xdebug.remote_connect_back=0
xdebug.remote_host=192.168.0.105 ; 你本机的IP地址(内网,不是公网)
xdebug.idekey=VSCODE
xdebug.remote_autostart=1
xdebug.remote_log=/data1/logs/xdebug/remote.log ;xdebug的日志输出地址,可加可不加
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 19900, // 对应 XDebug 的配置
"stopOnEntry": true,
"pathMappings": {
// "容器中对应的项目地址": "本机项目地址"
// 绝对路径
"${workspaceRoot}": "${workspaceRoot}"
}
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9090
}
]
}

Content type
Image
Digest
Size
218.9 MB
Last updated
over 5 years ago
docker pull omydockerhub/php7