Удаленный сервер представляет собой QNAP NAS, на нем работает Apache и на нем установлен Xdebug.
99-xdebug.ini
Код: Выделить всё
[xDebug]
extension = xdebug
xdebug.mode = debug,develop
xdebug.remote_handler = "dbgp"
xdebug.remote_cookie_expire_time = 36000
xdebug.start_with_request=trigger
xdebug.client_host = 192.168.1.29
xdebug.client_port = 9003
xdebug.show_exception_trace=false
xdebug.log = /tmp/xdebug.log
xdebug.log_level=10
xdebug.trigger_value=DavidDebugando
xdebug.idekey=vsc
Код: Выделить всё
{
// 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": "Local listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"xdebugSettings": {
"max_children": 128,
"max_data": -1,
"max_depth": 3
},
},
{
"name": "Remote listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"xdebugSettings": {
"max_children": 128,
"max_data": -1,
"max_depth": 3
},
"pathMappings": {
// "file:///share/ZFS2_DATA/Web/dolibarr-pruebas": "${workspaceFolder}",
"/share/ZFS2_DATA/Web/dolibarr-pruebas": "${workspaceFolder}"
},
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9003,
"xdebugSettings": {
"max_children": 128,
"max_data": -1,
"max_depth": 3
}
}
]
}
Код: Выделить всё
[23080] Log opened at 2024-09-17 10:32:54.365243
[23080] [Config] DEBUG: Checking if trigger 'XDEBUG_TRIGGER' is enabled for mode 'debug'
[23080] [Config] DEBUG: The trigger value 'DavidDebugando' matched the shared secret 'DavidDebugando' for mode 'debug'
[23080] [Step Debug] INFO: Connecting to configured address/port: 192.168.1.29:9003.
[23080] [Step Debug] INFO: Connected to debugging client: 192.168.1.29:9003 (through xdebug.client_host/xdebug.client_port). :-)
[23080] [Step Debug] ->
[23080] [Step Debug]
[23080] [Step Debug]
[23080] [Step Debug]
[23080] [Step Debug]
[23080] [Step Debug]
[23080] [Step Debug]
[23080] [Step Debug]
[23080] [Step Debug]
[23080] [Step Debug]
[23080] [Step Debug]
[23080] Log closed at 2024-09-17 10:32:54.415959
Код: Выделить всё
[1040] [Step Debug]
Я понятия не имею, почему это происходит. Верны ли мои сопоставления путей?
Подробнее здесь: https://stackoverflow.com/questions/789 ... reakpoints