View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002084 | Xdebug | Step Debugging | public | 2022-04-26 13:39 | 2022-04-28 19:45 |
| Reporter | verticon | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| Product Version | 3.0.4 | ||||
| Summary | 0002084: Breakpoints not triggering (under certain conditions) | ||||
| Description | In order to explore why my breakpoints are not being triggered I configured xdebug to produce a log with a level of 10. Studying the logs revealed that breakpoint matching does not occur when the file in which the breakpoint is set contains a path component with a space in its name. I am attaching two log files: xdebugBreakpoiintSuccess.log and xdebugBreakpointFailure.log. Into each of these files I have added a comment that begins with Dear XDebug team. When You look you will see what I am talking about. The space in the directory name is a consequence of me having my files on my iCloud Drive. Right now my only option is to move them to a different place. :-( | ||||
| Steps To Reproduce | Create a host whose document root has a space in the name of one of its directories. | ||||
| Additional Information | xdebug 3.0.4 PHP 8.0.8 (cli) (built: Oct 1 2021 11:21:06) ( NTS ) | ||||
| Tags | No tags attached. | ||||
| Operating System | Mac OS Monterey 12.2.1 | ||||
| PHP Version | 8.0.10-8.0.19 | ||||
|
|
Hi, I think it is your IDE that is doing this wrong. It is setting a breakpoint with the extra
But then later, it uses the correct file name when running the "source" command in line 19:
Where you have added "Dear XDebug", you see Xdebug comparing againt the breakpoint that was actually set (with the extra
You didn't say which IDE you're using, so can't point you to the right issue tracker for them. cheers, |
|
|
Thank you, Derick, for the quick response. I've switched to another UI (the php-debug package for Atom) but am still going through the initial "get it working' phase. I'll report back. The difficulty with the space character occurred with MacGDBp - I'll be submitting a report to those folks. |
|
|
Okay. I got Atom's php-debug package working and thus established that xdebug does not have a problem handling paths with a space in the name of one of the path's components. I've also submitted a problem report to macGDBp. Thank you xdebug team for the excellent support. |
|
|
Okay. Glad that we found the actual problem (and that it wasn't in Xdebug :-)). I'll close this out then. And the team is really just me. ;-) If you can pop in the link in a comment to the macdbgp issue, that'd be good as a reference. |
|
|
A team unto himself! :-) Here is the macGDBp bug report link: https://www.bluestatic.org/bugs/showreport.php?bugid=267 |