-
Anonymous
Xdebug запускает соединение, а затем автоматически закрывается
Сообщение
Anonymous »
Я использую код Visual Studio, и по умолчанию в нем установлен Xdebug версии v3.x.x.
Общая конфигурация ниже,
launch.json
Код: Выделить всё
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9001,
"stopOnEntry":true,
"log": true,
"hostname": "localhost",
"pathMappings": {
"/var/www/html": "${workspaceRoot}",
"/app": "${workspaceRoot}/app"
}
}
]
}
php.ini,
Код: Выделить всё
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.discover_client_host=1
test.php
Код: Выделить всё
Подробнее здесь: [url]https://stackoverflow.com/questions/68738661/xdebug-starts-the-connection-and-than-closes-automatically[/url]
1765841832
Anonymous
Я использую код Visual Studio, и по умолчанию в нем установлен Xdebug версии v3.x.x.
Общая конфигурация ниже,
launch.json
[code]{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9001,
"stopOnEntry":true,
"log": true,
"hostname": "localhost",
"pathMappings": {
"/var/www/html": "${workspaceRoot}",
"/app": "${workspaceRoot}/app"
}
}
]
}
[/code]
php.ini,
[code]xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.discover_client_host=1
[/code]
test.php
[code]
Подробнее здесь: [url]https://stackoverflow.com/questions/68738661/xdebug-starts-the-connection-and-than-closes-automatically[/url]