View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002201 | Xdebug | Step Debugging | public | 2023-09-09 18:04 | 2023-09-17 12:53 |
Reporter | bbProg | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Platform | NAS | OS | DSM | OS Version | 7.2-64570 |
Product Version | 3.1.2 | ||||
Summary | 0002201: Breakpoints turn unverfied and ignored when debugging on NAS/shared folder | ||||
Description | Hi, in short, I cannot make my VSCode to stop on breakpoints. During my last days of researching this theme I think I found a little bug and I also need a bit of support. Possible bug: with xampp and xdebug installed locally, all is working as long as the files are on the local PC, also with C:\xampp\htdocs linked to folder on another drive with Directory Junction (mklink /j...). Breakpoints turn unverified and being ignored when the files are on a shred folder even when it's mapped and htdocs is linked with directory symbolic link to "\share\folder" (mklink /d...). Meaning, in VSCode, opening "W:\project_folder" - causes breakpoins to be ignored. Workaround I found: opening C:\xampp\htdocs\project_name which is linked (). | ||||
Steps To Reproduce | I believe I do not need to write it, but :)
| ||||
Additional Information | Support: as you understand, I have my project files on Synology NAS and would like to be able to debug them with out the use of xampp.
my launch.json file configuration:
Debuggers starts, but on page load/refresh, all breakpoints turn unverified and being ignored. Setting "hostname": "localhost" results with the folloing messages under Diagnostic Log:
Information next to the "zendĀ® engine" logo:
| ||||
Tags | nas, shared folder, unverfied breakpoints, xdebug | ||||
Attached Files | xdebug.log (17,475 bytes)
[17618] Log opened at 2023-09-09 17:09:17.851199 [17618] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///volume1/web/loomnest.com/index.php" language="PHP" xdebug:language_version="8.0.28" protocol_version="1.0" appid="17618"><engine version="3.1.2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]></copyright></init> [17618] [Step Debug] <- feature_set -i 1 -n resolved_breakpoints -v 1 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="resolved_breakpoints" success="1"></response> [17618] [Step Debug] <- feature_set -i 2 -n notify_ok -v 1 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="notify_ok" success="1"></response> [17618] [Step Debug] <- feature_set -i 3 -n extended_properties -v 1 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="extended_properties" success="1"></response> [17618] [Step Debug] <- feature_get -i 4 -n breakpoint_include_return_value [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="4" feature_name="breakpoint_include_return_value" supported="0"><![CDATA[0]]></response> [17618] [Step Debug] <- feature_set -i 5 -n max_children -v 100 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="max_children" success="1"></response> [17618] [Step Debug] <- breakpoint_set -i 6 -t line -f file:///w:/loomnest.com/header.php -n 2 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="6" id="176180011" resolved="unresolved"></response> [17618] [Step Debug] <- breakpoint_set -i 7 -t line -f file:///w:/loomnest.com/index.php -n 2 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="7" id="176180012" resolved="unresolved"></response> [17618] [Step Debug] <- run -i 8 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="8" status="stopping" reason="ok"></response> [17618] [Step Debug] <- stop -i 9 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stop" transaction_id="9" status="stopped" reason="ok"></response> [17618] Log closed at 2023-09-09 17:09:17.908951 [17618] Log opened at 2023-09-09 17:10:41.325483 [17619] Log opened at 2023-09-09 17:10:41.325483 [17619] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///volume1/web/loomnest.com/xdebugInfo.php" language="PHP" xdebug:language_version="8.0.28" protocol_version="1.0" appid="17619"><engine version="3.1.2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]></copyright></init> [17618] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///volume1/web/loomnest.com/index.php" language="PHP" xdebug:language_version="8.0.28" protocol_version="1.0" appid="17618"><engine version="3.1.2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]></copyright></init> [17619] [Step Debug] <- feature_set -i 1 -n resolved_breakpoints -v 1 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="resolved_breakpoints" success="1"></response> [17618] [Step Debug] <- feature_set -i 1 -n resolved_breakpoints -v 1 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="resolved_breakpoints" success="1"></response> [17619] [Step Debug] <- feature_set -i 2 -n notify_ok -v 1 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="notify_ok" success="1"></response> [17618] [Step Debug] <- feature_set -i 2 -n notify_ok -v 1 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="notify_ok" success="1"></response> [17619] [Step Debug] <- feature_set -i 3 -n extended_properties -v 1 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="extended_properties" success="1"></response> [17618] [Step Debug] <- feature_set -i 3 -n extended_properties -v 1 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="extended_properties" success="1"></response> [17619] [Step Debug] <- feature_get -i 4 -n breakpoint_include_return_value [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="4" feature_name="breakpoint_include_return_value" supported="0"><![CDATA[0]]></response> [17618] [Step Debug] <- feature_get -i 4 -n breakpoint_include_return_value [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="4" feature_name="breakpoint_include_return_value" supported="0"><![CDATA[0]]></response> [17619] [Step Debug] <- feature_set -i 5 -n max_children -v 100 [17618] [Step Debug] <- feature_set -i 5 -n max_children -v 100 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="max_children" success="1"></response> [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="max_children" success="1"></response> [17618] [Step Debug] <- breakpoint_set -i 6 -t line -f file:///w:/loomnest.com/header.php -n 2 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="6" id="176180013" resolved="unresolved"></response> [17619] [Step Debug] <- breakpoint_set -i 6 -t line -f file:///w:/loomnest.com/header.php -n 2 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="6" id="176190013" resolved="unresolved"></response> [17618] [Step Debug] <- breakpoint_set -i 7 -t line -f file:///w:/loomnest.com/index.php -n 2 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="7" id="176180014" resolved="unresolved"></response> [17619] [Step Debug] <- breakpoint_set -i 7 -t line -f file:///w:/loomnest.com/index.php -n 2 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="7" id="176190014" resolved="unresolved"></response> [17618] [Step Debug] <- run -i 8 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="8" status="stopping" reason="ok"></response> [17619] [Step Debug] <- run -i 8 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="8" status="stopping" reason="ok"></response> [17618] [Step Debug] <- stop -i 9 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stop" transaction_id="9" status="stopped" reason="ok"></response> [17618] Log closed at 2023-09-09 17:10:41.380623 [17619] [Step Debug] <- stop -i 9 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stop" transaction_id="9" status="stopped" reason="ok"></response> [17619] Log closed at 2023-09-09 17:10:41.381449 [17618] Log opened at 2023-09-09 17:43:50.014536 [17618] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///volume1/web/loomnest.com/xdebugInfo.php" language="PHP" xdebug:language_version="8.0.28" protocol_version="1.0" appid="17618"><engine version="3.1.2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]></copyright></init> [17618] [Step Debug] <- feature_set -i 1 -n resolved_breakpoints -v 1 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="resolved_breakpoints" success="1"></response> [17618] [Step Debug] <- feature_set -i 2 -n notify_ok -v 1 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="notify_ok" success="1"></response> [17618] [Step Debug] <- feature_set -i 3 -n extended_properties -v 1 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="extended_properties" success="1"></response> [17618] [Step Debug] <- feature_get -i 4 -n breakpoint_include_return_value [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="4" feature_name="breakpoint_include_return_value" supported="0"><![CDATA[0]]></response> [17618] [Step Debug] <- feature_set -i 5 -n max_children -v 100 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="max_children" success="1"></response> [17618] [Step Debug] <- breakpoint_set -i 6 -t line -f file:///w:/loomnest.com/header.php -n 2 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="6" id="176180015" resolved="unresolved"></response> [17618] [Step Debug] <- breakpoint_set -i 7 -t line -f file:///w:/loomnest.com/index.php -n 2 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="7" id="176180016" resolved="unresolved"></response> [17618] [Step Debug] <- run -i 8 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="8" status="stopping" reason="ok"></response> [17618] [Step Debug] <- stop -i 9 [17618] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stop" transaction_id="9" status="stopped" reason="ok"></response> [17618] Log closed at 2023-09-09 17:43:50.065637 [17619] Log opened at 2023-09-09 17:43:53.117096 [17619] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///volume1/web/loomnest.com/xdebugInfo.php" language="PHP" xdebug:language_version="8.0.28" protocol_version="1.0" appid="17619"><engine version="3.1.2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]></copyright></init> [17619] [Step Debug] <- feature_set -i 1 -n resolved_breakpoints -v 1 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="resolved_breakpoints" success="1"></response> [17619] [Step Debug] <- feature_set -i 2 -n notify_ok -v 1 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="notify_ok" success="1"></response> [17619] [Step Debug] <- feature_set -i 3 -n extended_properties -v 1 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="extended_properties" success="1"></response> [17619] [Step Debug] <- feature_get -i 4 -n breakpoint_include_return_value [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="4" feature_name="breakpoint_include_return_value" supported="0"><![CDATA[0]]></response> [17619] [Step Debug] <- feature_set -i 5 -n max_children -v 100 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="max_children" success="1"></response> [17619] [Step Debug] <- breakpoint_set -i 6 -t line -f file:///w:/loomnest.com/header.php -n 2 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="6" id="176190015" resolved="unresolved"></response> [17619] [Step Debug] <- breakpoint_set -i 7 -t line -f file:///w:/loomnest.com/index.php -n 2 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="7" id="176190016" resolved="unresolved"></response> [17619] [Step Debug] <- run -i 8 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="8" status="stopping" reason="ok"></response> [17619] [Step Debug] <- stop -i 9 [17619] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stop" transaction_id="9" status="stopped" reason="ok"></response> [17619] Log closed at 2023-09-09 17:43:53.173843 [17618] Log opened at 2023-09-09 17:44:00.362206 [17618] [Step Debug] WARN: Could not connect to client host discovered through HTTP headers, connecting to configured address/port: 192.168.123.11:9003. :-| [17618] [Step Debug] ERR: Time-out connecting to debugging client, waited: 200 ms. Tried: 192.168.123.11:9003 (from REMOTE_ADDR HTTP header), 192.168.123.11:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( [17618] Log closed at 2023-09-09 17:44:00.764792 [17619] Log opened at 2023-09-09 17:44:12.929645 [17619] [Step Debug] WARN: Could not connect to client host discovered through HTTP headers, connecting to configured address/port: 192.168.123.11:9003. :-| [17619] [Step Debug] ERR: Time-out connecting to debugging client, waited: 200 ms. Tried: 192.168.123.11:9003 (from REMOTE_ADDR HTTP header), 192.168.123.11:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( [17619] Log closed at 2023-09-09 17:44:13.331755 [17618] Log opened at 2023-09-09 17:45:09.607444 [17618] [Step Debug] WARN: Could not connect to client host discovered through HTTP headers, connecting to configured address/port: 192.168.123.11:9003. :-| [17618] [Step Debug] ERR: Time-out connecting to debugging client, waited: 200 ms. Tried: 192.168.123.11:9003 (from REMOTE_ADDR HTTP header), 192.168.123.11:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( [17618] Log closed at 2023-09-09 17:45:10.009565 [17619] Log opened at 2023-09-09 17:45:15.737236 [17619] [Step Debug] WARN: Could not connect to client host discovered through HTTP headers, connecting to configured address/port: 192.168.123.11:9003. :-| [17619] [Step Debug] ERR: Time-out connecting to debugging client, waited: 200 ms. Tried: 192.168.123.11:9003 (from REMOTE_ADDR HTTP header), 192.168.123.11:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( [17619] Log closed at 2023-09-09 17:45:16.139479 [17618] Log opened at 2023-09-09 17:48:03.803273 [17618] [Step Debug] WARN: Could not connect to client host discovered through HTTP headers, connecting to configured address/port: 192.168.123.11:9003. :-| [17618] [Step Debug] ERR: Time-out connecting to debugging client, waited: 200 ms. Tried: 192.168.123.11:9003 (from REMOTE_ADDR HTTP header), 192.168.123.11:9003 (fallback through xdebug.client_host/xdebug.client_port) :-( [17618] Log closed at 2023-09-09 17:48:04.205033 | ||||
Operating System | Windows 10 22H2 | ||||
PHP Version | 8.0.20-8.0.29 | ||||
|
I don't think there is a bug here, just that you haven't set up path mappings. Xdebug only always sees what the Operating System tells it which file name is being debugged. From your log, I see that is:
However, your IDE is setting breakpoints on the
Because these don't match, the breakpoints don't catch. Probably the easiest here is to configure a
This tells the IDE to do the mapping for you when it sets breakpoints. |
|
I don't know where the & quot; came from, these should be " of course. |
|
Thank yo Derick, I suspected it might be due to some configuration, therefore I called it possible bug :) |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-09-09 18:04 | bbProg | New Issue | |
2023-09-09 18:04 | bbProg | Tag Attached: nas | |
2023-09-09 18:04 | bbProg | Tag Attached: shared folder | |
2023-09-09 18:04 | bbProg | Tag Attached: unverfied breakpoints | |
2023-09-09 18:04 | bbProg | Tag Attached: xdebug | |
2023-09-09 18:04 | bbProg | File Added: xdebug.log | |
2023-09-14 17:03 | derick | Additional Information Updated | |
2023-09-14 17:08 | derick | Assigned To | => derick |
2023-09-14 17:08 | derick | Status | new => feedback |
2023-09-14 17:08 | derick | Note Added: 0006653 | |
2023-09-14 17:08 | derick | Note Added: 0006654 | |
2023-09-17 12:53 | bbProg | Note Added: 0006655 | |
2023-09-17 12:53 | bbProg | Status | feedback => assigned |