- vscode in windows
- vmware in windows
- centos in vmware
- docker in centos
- php and nginx in docker
php.ini
[XDebug]
xdebug.auto_trace = on
xdebug.collect_params = on
xdebug.collect_return = on
xdebug.profiler_enable = on
xdebug.profiler_output_dir ="/php/ext/xdebug_profilers"
xdebug.trace_output_dir = "/tmp/ext/xdebug_traces"
xdebug.remote_enable = on
xdebug.remote_connect_back = 1
xdebug.remote_port = 9010
xdebug.remote_autostart = on
vscode launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "XDebug Thinkphp5",
"type": "php",
"request": "launch",
"stopOnEntry": false,
"pathMappings": {
"****": "${workspaceRoot}/****"
},
"port": 9010
}
]
}
windows->centos->docker->php, He can't work properly,
windows->centos->php, He can work (And modify some configurations)
how debug php using vscode?