Repository navigation
Vim hangs up connection without stopping on breaking point #509
Copy link
Copy link
Open
Description
Hi,
I've recently encountered with an vdebug issue, when the debugger attempts to listen to requests, but when hitting an http request to the web server, vdebug seems to disconnect and ignore the break point at all. I'm using PHP 7.4 with Xdebug 3.0.4 and docker and SpaceVIm + Vim 8.2 above.
My configurations are as follows:
vdebug:
let g:vdebug_options = {
\ 'server': '172.18.0.1',
\ 'port': 9001,
\ 'break_on_open': 0,
\ 'continuous_mode': 0,
\ 'debug_file_level': 8,
\ 'debug_file': '~/vdebug.log',
\ 'on_close': 'detach',
\ 'path_maps': {
\ '/var/www/html': 'some_correct_path'
\}
\}
xdebug.ini:
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_handler="dbgp"
xdebug.client_host=172.18.0.1
xdebug.client_port=9001
I'm attaching screen shoot to illustrate the problem:

As you can see all info tabs are empty as well.
Finally, that's what logs output:
- [Debug] {Wed 22 2021 11:17:19} keymapper: reload_keys
- [Info] {Wed 22 2021 11:17:19} Found connection from ('172.18.0.8', 50722)
- [Debug] {Wed 22 2021 11:17:19} Command: context_names -i 1
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="context_names" transaction_id="1"><context name="Locals" id="0"></context><context name="Superglobals" id="1"></context><context name="User defined constants" id="2"></context></response>
- [Debug] {Wed 22 2021 11:17:19} Available context names: {0: 'Locals', 1: 'Superglobals', 2: 'User defined constants'}
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 2 -n language_supports_threads
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="2" feature_name="language_supports_threads" supported="1"><![CDATA[0]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: language_supports_threads = 0
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 3 -n language_name
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="3" feature_name="language_name" supported="1"><![CDATA[PHP]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: language_name = PHP
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 4 -n language_version
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="4" feature_name="language_version" supported="1"><![CDATA[7.4.12]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: language_version = 7.4.12
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 5 -n encoding
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="5" feature_name="encoding" supported="1"><![CDATA[iso-8859-1]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: encoding = iso-8859-1
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 6 -n protocol_version
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="6" feature_name="protocol_version" supported="1"><![CDATA[1.0]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: protocol_version = 1.0
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 7 -n supports_async
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="7" feature_name="supports_async" supported="1"><![CDATA[0]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: supports_async = 0
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 8 -n data_encoding
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="8" feature_name="data_encoding" supported="0"></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: data_encoding = * Feature not supported *
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 9 -n breakpoint_languages
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="9" feature_name="breakpoint_languages" supported="0"></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: breakpoint_languages = * Feature not supported *
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 10 -n breakpoint_types
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="10" feature_name="breakpoint_types" supported="1"><![CDATA[line conditional call return exception]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: breakpoint_types = line conditional call return exception
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 11 -n resolved_breakpoints
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="11" feature_name="resolved_breakpoints" supported="1"><![CDATA[0]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: resolved_breakpoints = 0
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 12 -n multiple_sessions
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="12" feature_name="multiple_sessions" supported="0"><![CDATA[0]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: multiple_sessions = * Feature not supported *
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 13 -n max_children
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="13" feature_name="max_children" supported="1"><![CDATA[32]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: max_children = 32
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 14 -n max_data
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="14" feature_name="max_data" supported="1"><![CDATA[1024]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: max_data = 1024
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 15 -n max_depth
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="15" feature_name="max_depth" supported="1"><![CDATA[1]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: max_depth = 1
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 16 -n extended_properties
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="16" feature_name="extended_properties" supported="1"><![CDATA[0]]></response>
- [Debug] {Wed 22 2021 11:17:19} Must Feature: extended_properties = 0
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 17 -n supported_encodings
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="17" feature_name="supported_encodings" supported="1"><![CDATA[iso-8859-1]]></response>
- [Debug] {Wed 22 2021 11:17:19} Maybe Feature: supported_encodings = iso-8859-1
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 18 -n supports_postmortem
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="18" feature_name="supports_postmortem" supported="1"><![CDATA[1]]></response>
- [Debug] {Wed 22 2021 11:17:19} Maybe Feature: supports_postmortem = 1
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 19 -n show_hidden
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="19" feature_name="show_hidden" supported="1"><![CDATA[0]]></response>
- [Debug] {Wed 22 2021 11:17:19} Maybe Feature: show_hidden = 0
- [Debug] {Wed 22 2021 11:17:19} Command: feature_get -i 20 -n notify_ok
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="20" feature_name="notify_ok" supported="1"><![CDATA[0]]></response>
- [Debug] {Wed 22 2021 11:17:19} Maybe Feature: notify_ok = 0
- [Debug] {Wed 22 2021 11:17:19} Command: feature_set -i 21 -n multiple_sessions -v 0
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="21" feature="multiple_sessions" success="1"></response>
- [Debug] {Wed 22 2021 11:17:19} Command: feature_set -i 22 -n extended_properties -v 1
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="22" feature="extended_properties" success="1"></response>
- [Info] {Wed 22 2021 11:17:19} Updated line number of breakpoint 11000 to 99
- [Info] {Wed 22 2021 11:17:19} Registering 1 breakpoints with the debugger
- [Debug] {Wed 22 2021 11:17:19} Command: breakpoint_set -i 23 -t line -f "file:///home/gal/Desktop/Projects/crm/app/Http/Controllers/Customer/TradingAccountDepositsController.php" -n 99 -s enabled
- [Debug] {Wed 22 2021 11:17:19} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="23" state="enabled" id="3500008"></response>
- [Debug] {Wed 22 2021 11:17:19} starting with run (break_on_open = 0)
- [Debug] {Wed 22 2021 11:17:19} Command: run -i 24
- [Debug] {Wed 22 2021 11:17:21} Response: <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="24" status="stopping" reason="ok"></response>
- [Debug] {Wed 22 2021 11:17:21} refresh event
- [Info] {Wed 22 2021 11:17:21} Dispatching refresh event
- [Debug] {Wed 22 2021 11:17:21} ** RefreshEvent
- [Debug] {Wed 22 2021 11:17:21} keymapper: reload_keys
- [Info] {Wed 22 2021 11:17:21} Debugging session has ended
- [Info] {Wed 22 2021 11:17:21} closing connection because status is stopped
- [Debug] {Wed 22 2021 11:17:21} keymapper: reload_keys
- [Info] {Wed 22 2021 11:17:21} Closing the connection
- [Debug] {Wed 22 2021 11:17:21} Closing the socket
- [Debug] {Wed 22 2021 11:17:21} Closing the socket
- [Debug] {Wed 22 2021 11:17:21} Closing the socket
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
pbpjackd commentedon Apr 20, 2022
@XyrusTheVirus I have a similar issue while trying to debug some Wordpress site. Do you have a way to work around this ?
XyrusTheVirus commentedon Apr 20, 2022
Hi @pbpjackd,
Unfortunately, recently, I've moved from working with PHP.
Regardless of that, I don't think the owners of this project had fixed this issue, therefore i would recommend on snoozing them!!!
BlackIkeEagle commentedon Apr 20, 2022
@pbpjackd do you also have
break_on_open: 0? If so I would suggest re-trying withbreak_on_open: 1and see if the request actually hits the breakpoint