XDebug с dbgpProxy не может подключиться к моему компьютеруPhp

Кемеровские программисты php общаются здесь
Ответить Пред. темаСлед. тема
Anonymous
 XDebug с dbgpProxy не может подключиться к моему компьютеру

Сообщение Anonymous »

Это мой файл launch.json

Код: Выделить всё

{
"name": "Remote listen for Xdebug",
"type": "php",
"request": "launch",
"port": 26357,
"xdebugSettings": {
"max_children": 128,
"max_data": -1,
"max_depth": 3
},
"pathMappings": {
"/share/ZFS2_DATA/Web/dolibarr-1": "${workspaceRoot}",
"/share/ZFS2_DATA/Web/dolibarr-2": "${workspaceRoot}",
"/share/ZFS2_DATA/Web/dolibarr-3": "${workspaceRoot}",
"/share/ZFS2_DATA/Web/dolibarr-4": "${workspaceRoot}",
},
"log": true,
"proxy": {
"enable": true,
"host": "192.168.1.88",
"port": 26356,
"key": "VSCODE",
"allowMultipleSessions": false
}
},
Это мой 99-xdebug.ini

Код: Выделить всё

[xDebug]
zend_extension = xdebug
xdebug.mode = debug,develop
xdebug.remote_handler = "dbgp"
xdebug.remote_cookie_expire_time = 36000
xdebug.start_with_request=trigger
;xdebug.discover_client_host=true
;xdebug.client_host = 192.168.1.57
xdebug.client_host = 127.0.0.1
xdebug.client_port = 26357
xdebug.show_exception_trace=false
xdebug.log = /tmp/xdebug.log
xdebug.log_level=10
xdebug.trigger_value=VSCODE
xdebug.idekey=VSCODE
Затем я запускаю dbgpProxy с помощью ./dbgpProxy -s 0.0.0.0:26357 -i 0.0.0.0:26356

Код: Выделить всё

[david@localhost ~]$ ./dbgpProxy -s 0.0.0.0:26357 -i 0.0.0.0:26356
Xdebug DBGp proxy (0.6.1)
Copyright %s by Derick Rethans 2024
2024-11-11 07:20:38.038 [warn] [SSL] The 'certs/fullchain.pem' file could not be found, not enabling SSL listeners
2024-11-11 07:20:38.039 [info] [dbgpProxy] Proxy started
2024-11-11 07:20:38.039 [info] [server] Started server server on 0.0.0.0:26357
2024-11-11 07:20:38.039 [info] [server] Started client server on 0.0.0.0:26356
2024-11-11 07:20:41.436 [info] [server] Start new client connection from 192.168.1.57:11892
2024-11-11 07:20:41.953 [info] [proxyinit] [VSCODE] Added connection for IDE Key 'VSCODE': 192.168.1.57:26357
2024-11-11 07:20:41.953 [info] [server] Closing client connection from 192.168.1.57:11892
Вывод на vscode

Код: Выделить всё

Registering VSCODE on port 26357 with proxy @ 192.168.1.88:26356
Registration successful
Журнал xdebug

Код: Выделить всё

[30035] [Step Debug]  

[30035] [Step Debug] WARN: Debug client detached: "dbgpProxy has no IDE connected to it".
[30035] Log closed at 2024-11-11 07:34:21.343605

[942] Log opened at 2024-11-11 07:34:25.171655
[942] [Config] DEBUG: Checking if trigger 'XDEBUG_TRIGGER' is enabled for mode 'debug'
[942] [Config] INFO: Trigger value for 'XDEBUG_TRIGGER' not found, falling back to 'XDEBUG_SESSION'
[942] [Config] DEBUG: The trigger value 'VSCODE' matched the shared secret 'VSCODE' for mode 'debug'
[942] [Step Debug] INFO: Connecting to configured address/port: 127.0.0.1:26357.
[942] [Step Debug] INFO: Connected to debugging client: 127.0.0.1:26357 (through xdebug.client_host/xdebug.client_port).  :-)
[942] [Step Debug] -> 

[942] [Step Debug]  

[942] [Step Debug] WARN: Debug client detached: "dbgpProxy has no IDE connected to it".
[942] Log closed at 2024-11-11 07:34:25.223544
При использовании dbgpProxy я получаю

Код: Выделить всё

2024-11-11 07:34:00.364 [info] [server] Start new client connection from 192.168.1.57:12102
2024-11-11 07:34:00.869 [info] [proxyinit] [VSCODE] Added connection for IDE Key 'VSCODE': 192.168.1.57:26357
2024-11-11 07:34:00.869 [info] [server] Closing client connection from 192.168.1.57:12102
2024-11-11 07:34:21.342 [err ] [proxy-client] [VSCODE] IDE not connected: dial tcp 192.168.1.57:26357: connect: connection timed out
2024-11-11 07:34:21.342 [warn] [proxy-client] [VSCODE] Removed connection information for 'VSCODE': dial tcp 192.168.1.57:26357: connect: connection timed out
2024-11-11 07:34:21.343 [warn] [server] Handler response error: Error reading response: Error reading length: EOF
2024-11-11 07:34:21.343 [info] [server] Closing server connection from 127.0.0.1:48254
2024-11-11 07:34:25.172 [info] [server] Start new server connection from 127.0.0.1:48350
2024-11-11 07:34:25.172 [info] [proxy-client] [VSCODE] Could not find IDE connection for IDE Key 'VSCODE'
2024-11-11 07:34:25.172 [warn] [server] Handler response error: Error reading response: Error reading length: EOF
2024-11-11 07:34:25.172 [info] [server] Closing server connection from 127.0.0.1:48350
Я использую неправильные порты? Это связано с брандмауэром? В iptables или моем брандмауэре Windows ничего нет, поэтому, если это связано с брандмауэром, это может быть физический брандмауэр.
При использовании Wireshark я вижу следующее:
Изображение

Это прокси-сервер пытается подключиться к моему компьютеру?

Подробнее здесь: https://stackoverflow.com/questions/791 ... y-computer
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение
  • XDebug с dbgpProxy
    Anonymous » » в форуме Php
    0 Ответы
    6 Просмотры
    Последнее сообщение Anonymous
  • Как запустить сценарий bash, когда USB-устройство подключено к моему компьютеру?
    Anonymous » » в форуме Linux
    0 Ответы
    15 Просмотры
    Последнее сообщение Anonymous
  • Как запустить сценарий bash, когда USB-устройство подключено к моему компьютеру?
    Anonymous » » в форуме Linux
    0 Ответы
    37 Просмотры
    Последнее сообщение Anonymous
  • Как разрешить другим подключаться к моему компьютеру без изменения настроек маршрутизатора
    Anonymous » » в форуме C#
    0 Ответы
    14 Просмотры
    Последнее сообщение Anonymous
  • Невозможно подключить Android ADB к моему хост-компьютеру с Windows
    Anonymous » » в форуме Android
    0 Ответы
    14 Просмотры
    Последнее сообщение Anonymous

Вернуться в «Php»