View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002201 | Xdebug | Step Debugging | public | 2023-09-09 18:04 | 2025-10-30 11:51 |
| Reporter | bbProg | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | feedback | 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 | ||||
| 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 :) |
|
|
Did you ever try this, and got things working? |