Votes
For: 0 (0%)
Against: 0 (0%)
Total: 0
April 28, 2022 06:29 PM
verticon
My issue is that, under certain conditions, xdebug is not matching the breakpoints sent to it by macGDBp. The problematic condition is: the path to the file wherein the breakpoint is being set has a space in one of the directory names that constitute its path.
Here are some lines from Xdebug's log file that illustrate the problem.
Not Working: Note that the breakpoint location contains a % (which is apparently meant to escape the space in Mobile Documents) whereas the current location does not.
[43127] [Step Debug] DEBUG: Checking whether to break on /Users/robertvaessen/Library/Mobile% Documents/com~apple~CloudDocs/Wordpress/Learn/php/functions.php:4.
[43127] [Step Debug] DEBUG: I: Current location: /Users/robertvaessen/Library/Mobile Documents/com~apple~CloudDocs/Wordpress/Learn/php/functions.php:4.
[43127] [Step Debug] DEBUG: I: Matching breakpoint '/Users/robertvaessen/Library/Mobile% Documents/com~apple~CloudDocs/Wordpress/Learn/php/functions.php:4' against location '/Users/robertvaessen/Library/Mobile Documents/com~apple~CloudDocs/Wordpress/Learn/php/functions.php:4'.
[43127] [Step Debug] DEBUG: R: File name length (99) doesn't match with breakpoint (100).
Working: Here the same file set has been moved to a location which has no spaces in the path
[41964] [Step Debug] DEBUG: Checking whether to break on /Users/robertvaessen/Sites/xdebug.test/php/functions.php:4.
[41964] [Step Debug] DEBUG: I: Current location: /Users/robertvaessen/Sites/xdebug.test/php/functions.php:4.
[41964] [Step Debug] DEBUG: I: Matching breakpoint '/Users/robertvaessen/Sites/xdebug.test/php/functions.php:4' against location '/Users/robertvaessen/Sites/xdebug.test/php/functions.php:4'.
[41964] [Step Debug] DEBUG: F: File names match (/Users/robertvaessen/Sites/xdebug.test/php/functions.php).
[41964] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="9" status="break" reason="ok"><xdebug:message filename="file:///Users/robertvaessen/Sites/xdebug.test/php/functions.php" lineno="4"></xdebug:message></response>
Please let me know if I need to supply more information.
Here are some lines from Xdebug's log file that illustrate the problem.
Not Working: Note that the breakpoint location contains a % (which is apparently meant to escape the space in Mobile Documents) whereas the current location does not.
[43127] [Step Debug] DEBUG: Checking whether to break on /Users/robertvaessen/Library/Mobile% Documents/com~apple~CloudDocs/Wordpress/Learn/php/functions.php:4.
[43127] [Step Debug] DEBUG: I: Current location: /Users/robertvaessen/Library/Mobile Documents/com~apple~CloudDocs/Wordpress/Learn/php/functions.php:4.
[43127] [Step Debug] DEBUG: I: Matching breakpoint '/Users/robertvaessen/Library/Mobile% Documents/com~apple~CloudDocs/Wordpress/Learn/php/functions.php:4' against location '/Users/robertvaessen/Library/Mobile Documents/com~apple~CloudDocs/Wordpress/Learn/php/functions.php:4'.
[43127] [Step Debug] DEBUG: R: File name length (99) doesn't match with breakpoint (100).
Working: Here the same file set has been moved to a location which has no spaces in the path
[41964] [Step Debug] DEBUG: Checking whether to break on /Users/robertvaessen/Sites/xdebug.test/php/functions.php:4.
[41964] [Step Debug] DEBUG: I: Current location: /Users/robertvaessen/Sites/xdebug.test/php/functions.php:4.
[41964] [Step Debug] DEBUG: I: Matching breakpoint '/Users/robertvaessen/Sites/xdebug.test/php/functions.php:4' against location '/Users/robertvaessen/Sites/xdebug.test/php/functions.php:4'.
[41964] [Step Debug] DEBUG: F: File names match (/Users/robertvaessen/Sites/xdebug.test/php/functions.php).
[41964] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="9" status="break" reason="ok"><xdebug:message filename="file:///Users/robertvaessen/Sites/xdebug.test/php/functions.php" lineno="4"></xdebug:message></response>
Please let me know if I need to supply more information.
May 19, 2022 04:27 AM
Robert
Thanks for the report. I can confirm this, and I think it is a result of a double-escape from this line https://src.bluestatic.org/?p=macgdbp.git;a=blob;f=Source/ProtocolClient.m;h=99baa7eeb4572c2981ffef068c8b64a1616cb930;hb=edfdf89f47d13b1fcc69d4c5416377cafe86d7e9#l136 .
On May 19, 2022 04:27 AM, Robert changed:
- Status from "Unconfirmed" to "Assigned"
May 19, 2022 03:05 PM
Robert
This will be fixed in the upcoming 2.1.2 release.
On May 19, 2022 03:05 PM, Robert changed:
- Status from "Assigned" to "Closed"
- Resolution from "Open" to "Fixed"
- Fixed in Revision from "" to "be1adcf576fdd4d552f7c6be82a440b71eb3dcfb"
- Mstone from "" to "2.1.2"