View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001663 | Xdebug | Step Debugging | public | 2019-05-03 19:30 | 2019-06-28 19:33 |
| Reporter | jpfingst | Assigned To | |||
| Priority | normal | Severity | block | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.7.0rc1 | ||||
| Summary | 0001663: Remote Visual Studio Code not stopping on breakpoints. | ||||
| Description | I am using Visual Studio Code to remotely debug Laravel PHP on a local Homestead Nginx server. | ||||
| Additional Information | The attached xdebug log likely includes a forced exception (I put in a 1/0 after the line of code where I had set a breakpoint, to be sure this code was getting executed as expected). vagrant@homestead:~/code/api$ php -v | ||||
| Tags | No tags attached. | ||||
| Operating System | Ubuntu 18.04 | ||||
| PHP Version | 7.3.0-7.3.1 | ||||
|
|
Visual Studio Code |
|
|
If I set stop_on_entry, I am able to step through/over/into without problems. |
|
|
I tried adding xdebug.idekey=VSCODE, but that didn't seem to have any affect. |
|
|
The log shows that you're setting breakpoints with these file names: c:/Users/jpfingst/Documents/bit/api/app/API/V1/Controllers/DocumentPortal/CloneItem.php But, if you look at the init packet, it shows: fileuri="file:///home/vagrant/code/api/public/index.php" Because you are running code in a Vagrant machine, the paths that Xdebug sees (starting with /home/vagrant/code) don't match which you can see with VS Code (starting with c:/Users/jp...bit). You need to tell VSCode to make a path mapping between these two paths. You made an attempt, but I think you just forgot the c: in front of /Users/jpginst in your launch.json. As this is not a bug, and rather an issue with VSCode configuration I am closing out this bug report. |
|
|
OMG! Thanks for the second set of eyes. Priceless. |