Hello, guest. We have noticed that you are not registered at this bug tracker. Your experience will be greatly enhanced if you log in. To do so, you first must register by clicking on the Register tab at the top. If you are already registered, you can login at the Login tab.
Syndicate Syndicate Listing Display Search Login/Register
Bug Id ?
267
Reporter ?
verticon
MacGDBp / 2.1.1
Status ?
Closed
Severity ?
Moderate
Duplicate Of ?
- none -
Fixed in Revision ?
be1adcf576fdd4d552f7c6be82a440b71eb3dcfb
Mstone ?
2.1.2
Summary ?
Breakpoints do not trigger if breakpoint file has a space in a component of the path.
Report Time ?
April 28, 2022 06:29 PM
Assignment ?
Resolution ?
Fixed
Priority ?
Normal
Dependencies ?
- none -
Mstone (old) ?


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.


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:
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: