Skip to content

Still working after last updates from VSCode? #239

Closed

Description

@lmarcelocc

All all,

I'm asking if anyone of you are having troubles after the last Visual Studio Code updates, anyone?

Thanks.

Activity

  1. salixrosa commented on Feb 15, 2018

    @salixrosa

    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.

  2. patrik-martinko commented on Feb 15, 2018

    @patrik-martinko

    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.

  3. lmarcelocc commented on Feb 15, 2018

    @lmarcelocc
    Author

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

  4. salixrosa commented on Feb 15, 2018

    @salixrosa

    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:

    {
        // Use IntelliSense to learn about possible attributes.
        // Hover to view descriptions of existing attributes.
        // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Listen for XDebug",
                "type": "php",
                "request": "launch",
                "port": 9000,
                "pathMappings": {
                    "/var/www": "c:/vagrant/www"
                }
            },
        ]
    }
    

    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:

    <- breakpoint_set -i 4 -t line -f c:/vagrant/www/[somerandomfilepathIwasbreakpointingsomewhere].php -n 370
    -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="4" id="42890271"></response>
    
    

    So if you have a different file system, or whatever, that should help you make sure things are matching.

  5. lmarcelocc commented on Feb 15, 2018

    @lmarcelocc
    Author

    I wasn't use workspaceRoot variable before and my config is very similar to yours.

  6. salixrosa commented on Feb 15, 2018

    @salixrosa
  7. lmarcelocc commented on Feb 15, 2018

    @lmarcelocc
    Author

    This is what I get when start the debugging on VS Code:
    st1

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

    And this is my launch.json
    st3

    I'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!

  8. salixrosa commented on Feb 15, 2018

    @salixrosa
  9. lmarcelocc commented on Feb 15, 2018

    @lmarcelocc
    Author

    Yes, my phpinfo() shows that xdebug 2.6 is installed and running.

    This is what's within xdebug.log
    st4

    Any ideia what could be?

    Thanks.

  10. salixrosa commented on Feb 15, 2018

    @salixrosa
  11. lmarcelocc commented on Feb 15, 2018

    @lmarcelocc
    Author

    Oh, sorry for that,.

    That was I trying to despite, and I've changed both on xdebug and launch.json but still nothing.

  12. lmarcelocc commented on Feb 15, 2018

    @lmarcelocc
    Author

    weird, it found the remote address but can't communicate with the client (my machine I guess).
    st1

  13. lmarcelocc commented on Feb 15, 2018

    @lmarcelocc
    Author

    Ok, found the problem!!

    Windows firewal was blocking!! Just because I was working on a public network.

    Thank you @salixrosa for you precious help!

  14. salixrosa commented on Feb 15, 2018

    @salixrosa
  15. LostBeard commented on Feb 16, 2018

    @LostBeard

    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

  16. 3 remaining items

  17. lmarcelocc commented on Feb 19, 2018

    @lmarcelocc
    Author

    Hi all,

    I've also tried with ${workspaceFolder} but no success.

    Thanks.

  18. Metrakit commented on Feb 19, 2018

    @Metrakit

    same issue for me since last vscode update

  19. felixfbecker commented on Feb 19, 2018

    @felixfbecker
    Contributor

    @opus-2 please self-moderate your comment or I will delete it. Your attitude is extremely disrespectful.

  20. deleted a comment from opus-2 on Feb 20, 2018
  21. deleted a comment from opus-2 on Feb 20, 2018
  22. locked as too heated and limited conversation to collaborators on Feb 20, 2018
  23. unlocked this conversation on Mar 8, 2018
  24. AdamBassett commented on Mar 9, 2018

    @AdamBassett

    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.

  25. lmarcelocc commented on Mar 9, 2018

    @lmarcelocc
    Author

    @AdamBassett , go back for an older version of VS code, it's the quick fix.

  26. AdamBassett commented on Mar 9, 2018

    @AdamBassett

    Ok how do I do that I cant find a download for 1.19

  27. AdamBassett commented on Mar 9, 2018

    @AdamBassett

    Thanks now that you post that link I see is posted above. I missed it before thanks! This fixed it thank you so much!

  28. rulatir commented on Jul 25, 2019

    @rulatir

    Can't believe an issue like this eventually gets resolved with "use an older version"...

  29. felixfbecker commented on Jul 25, 2019

    @felixfbecker
    Contributor

    @rulatir it was fixed in 2617795

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions