You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Still working after last updates from VSCode? #239
Yes! Yesterday-day, I was using Xdebug and setting breakpoints and everything was perfectly fine.
Then I took my laptop home, and VS suggested it wanted to update, and I updated it, and... cue threeish hours trying to figure out what the problem was, and failing.
Eventually, I had to let it go. But my problem seemed to be somewhere down the chain of generating the serverFileUri for my breakpoints (I'm assuming that's what I see in my xdebug log). I could get VS to find the files for the exceptions XDebug gave it, but my xdebug log showed breakpoint file uris that were pretty much just the local mapping (rather than any kind of converted server mapping), and of course it did not break at the breakpoints.
I have no idea what the issue is, though, and don't have experiencing debugging extensions. Do you happen to know of an easy way of, say, logging things from the extension or launch.json to the VS console? I'd love proof of what ${workspaceRoot} (or the other variants variables I tried out) actually outputs.
Does your php_info look all right? I often do PHP --version in my command
line (in the environment where the actual PHP is running) as a quick way to
make sure XDebug is being included at all, when I don't feel like looking
through the full info.
In my setup, if I run a php script via the command line as a user who
doesn't have the correct permission for the log file, it actually tells me
about that before running the whole thing. If you're not getting any
warnings, and you've got the file at 777 but it's empty, it sounds like
XDebug isn't running at all.
Not working for me after updating VS Code. VSC would not stop on any of my breakpoints, but would stop on exceptions if I checked the box for it. I tried changing my path mapping to use the path directly instead of what was working before the update ("${workspaceRoot}/") and that did not help. Reverted to 1.19.3 and VSC is now stopping on my breakpoints again.
Was a solution ever found for this? I just updated my vscode yesterday and I'm getting the same behavior. xDebug for PHP stops on exceptions but wont stop on any brake points. It was working yesterday before I updated, now nothing. I have a project due Monday I need to find a fix ASAP.
Activity
salixrosa commentedon Feb 15, 2018
Yes! Yesterday-day, I was using Xdebug and setting breakpoints and everything was perfectly fine.
Then I took my laptop home, and VS suggested it wanted to update, and I updated it, and... cue threeish hours trying to figure out what the problem was, and failing.
Eventually, I had to let it go. But my problem seemed to be somewhere down the chain of generating the serverFileUri for my breakpoints (I'm assuming that's what I see in my xdebug log). I could get VS to find the files for the exceptions XDebug gave it, but my xdebug log showed breakpoint file uris that were pretty much just the local mapping (rather than any kind of converted server mapping), and of course it did not break at the breakpoints.
I have no idea what the issue is, though, and don't have experiencing debugging extensions. Do you happen to know of an easy way of, say, logging things from the extension or launch.json to the VS console? I'd love proof of what ${workspaceRoot} (or the other variants variables I tried out) actually outputs.
patrik-martinko commentedon Feb 15, 2018
Debugging stopped working when I updated VS Code to the v1.20. I downgraded VS Code to the v1.19.3 and debugging started working properly again.
lmarcelocc commentedon Feb 15, 2018
@salixrosa sorry, don't know as well, how to debug the extension.
@patrik-martinko, can you share you launch.json ? Still can't get this working after downgraded to VS Code v1.19.3 :/
salixrosa commentedon Feb 15, 2018
I didn't revert my VS Code back, but I just got it working by giving up on all the possible workspaceRoot -ish variables and doing this:
To figure out the "c:/vagrant/www" part, I literally just looked at what was being set for the breakpoint in the xdebug log, eg:
So if you have a different file system, or whatever, that should help you make sure things are matching.
lmarcelocc commentedon Feb 15, 2018
I wasn't use
workspaceRootvariable before and my config is very similar to yours.salixrosa commentedon Feb 15, 2018
lmarcelocc commentedon Feb 15, 2018
This is what I get when start the debugging on VS Code:

and my

xdebug.logis completely empty and I've settled already 777 permissions (yes, I'm desperate):And this is my

launch.jsonI've tested a lot of mapping, like:
"/home/vagrant/Code/myProject": "C:\\Users\\Marcelo\\Documents\\AlterFrame\\Projects\\myProject""/home/vagrant/Code/myProject/public": "C:\\Users\\Marcelo\\Documents\\AlterFrame\\Projects\\myProject\\public"but no success so far :/
Edit: My bad, a typo with xdebug.remote.log instead of xdebug.remote_log
Now I've something on the log, let me debug!
salixrosa commentedon Feb 15, 2018
lmarcelocc commentedon Feb 15, 2018
Yes, my phpinfo() shows that xdebug 2.6 is installed and running.
This is what's within

xdebug.logAny ideia what could be?
Thanks.
salixrosa commentedon Feb 15, 2018
lmarcelocc commentedon Feb 15, 2018
Oh, sorry for that,.
That was I trying to despite, and I've changed both on xdebug and launch.json but still nothing.
lmarcelocc commentedon Feb 15, 2018
weird, it found the remote address but can't communicate with the client (my machine I guess).

lmarcelocc commentedon Feb 15, 2018
Ok, found the problem!!
Windows firewal was blocking!! Just because I was working on a public network.
Thank you @salixrosa for you precious help!
salixrosa commentedon Feb 15, 2018
LostBeard commentedon Feb 16, 2018
Not working for me after updating VS Code. VSC would not stop on any of my breakpoints, but would stop on exceptions if I checked the box for it. I tried changing my path mapping to use the path directly instead of what was working before the update ("${workspaceRoot}/") and that did not help. Reverted to 1.19.3 and VSC is now stopping on my breakpoints again.
If anyone else needs it until this is figured out.
https://vscode.cdn.azure.cn/stable/7c4205b5c6e52a53b81c69d2b2dc8a627abaa0ba/VSCodeSetup-x64-1.19.3.exe
3 remaining items
lmarcelocc commentedon Feb 19, 2018
Hi all,
I've also tried with
${workspaceFolder}but no success.Thanks.
Metrakit commentedon Feb 19, 2018
same issue for me since last vscode update
felixfbecker commentedon Feb 19, 2018
@opus-2 please self-moderate your comment or I will delete it. Your attitude is extremely disrespectful.
AdamBassett commentedon Mar 9, 2018
Was a solution ever found for this? I just updated my vscode yesterday and I'm getting the same behavior. xDebug for PHP stops on exceptions but wont stop on any brake points. It was working yesterday before I updated, now nothing. I have a project due Monday I need to find a fix ASAP.
lmarcelocc commentedon Mar 9, 2018
@AdamBassett , go back for an older version of VS code, it's the quick fix.
AdamBassett commentedon Mar 9, 2018
Ok how do I do that I cant find a download for 1.19
lmarcelocc commentedon Mar 9, 2018
https://vscode.cdn.azure.cn/stable/7c4205b5c6e52a53b81c69d2b2dc8a627abaa0ba/VSCodeSetup-x64-1.19.3.exe
AdamBassett commentedon Mar 9, 2018
Thanks now that you post that link I see is posted above. I missed it before thanks! This fixed it thank you so much!
rulatir commentedon Jul 25, 2019
Can't believe an issue like this eventually gets resolved with "use an older version"...
felixfbecker commentedon Jul 25, 2019
@rulatir it was fixed in 2617795