hey everyone . I am configuring xdebug with vs-co...
# help
c
hey everyone . I am configuring xdebug with vs-code . and i have folloed this steps . but its not working . Anyone please help to fix this. the thread you are following is an old way to configure xdebug in Spryker if you are using vscode, then be sure to have the following extensions installed .1 Name: PHP Debug Id: xdebug.php-debug Description: Debug support for PHP with Xdebug Version: 1.32.0 Publisher: Xdebug VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=xdebug.php-debug 5. if you are using vscode, then be sure to have the following launch.json file See my launch.json file below. See how I set the pathMappings./data property to a VSCode variable ${workspaceFolder} You don't have set the runtimeExecutable path, and can safely keep it as is
Copy code
{
  "version": "0.2.0",
  "configurations": [

    {
      "name": "Listen for XDebug",
      "type": "php",
      "request": "launch",
      "port": 9003,
      "runtimeExecutable": "/absolute/path/php/bin",
      "pathMappings": {
        "/data": "${workspaceFolder}",
      },
      "log": true,
      "xdebugSettings": {
        "max_data": 65535,
        "show_hidden": 1,
        "max_children": 100,
        "max_depth": 5
      }
    },
  ]
}
6. start docker in debug mode
Copy code
docker/sdk start -x
7. set a breakpoint, and execute a refresh on your site / service breakpoint for yves public/Yves/index.php breakpoint for zed public/Zed/index.php marketplace.visualstudio.com PHP Debug - Visual Studio Marketplace Extension for Visual Studio Code - Debug support for PHP with Xdebug
w
Instead of posting the how to it would be helpful to post a clear description what is not working
p
c
sir actually i am trying this in the another system . and i had follwed these steps and in my system whenever i am run debug it will give me a message in blue color (Listening to xdebug on port 0.0.0.9003) . But in another system i am not getting this message and breakpoint is not hitting .
p
can you show us a screenshot of your terminal when you execute
docker/sdk cli
?
a
sir now it is hitting the break point .There is 3 extensions to install in vs code . 1. php xdebug . 2. 2.PHP 3. PHP profiler But after sometime on browser i am getting