Skip to content

Xdebug Breakpoints Unverified in VS Code #111

Answered by Mihajel
Mihajel asked this question in Q&A
Discussion options

You must be logged in to vote

I have found a solution that works for me. I changed many settings and tried around, but in the end I reset everything and tried again with the pathmapping. And lo and behold, it worked right away.

My launch.json looks now like this:

    "version": "0.2.0",
      "configurations": [
        {
          "name": "Listen for Xdebug",
          "type": "php",
          "request": "launch",
          "port": 9003,
          "log": true,
          // server -> local
          "pathMappings": {
            "/var/www/html": "${workspaceFolder}/build/wordpress"
          }
        }

Maybe it will help someone to find a solution faster in the future :)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Mihajel
Comment options

Comment options

You must be logged in to vote
1 reply
@luangjokaj
Comment options

Answer selected by luangjokaj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants