Skip to content

Instantly share code, notes, and snippets.

@yannbertrand
Created December 6, 2016 15:04
Show Gist options
  • Save yannbertrand/305df17ac8a70c77c1a85e2f873fdfa5 to your computer and use it in GitHub Desktop.
Save yannbertrand/305df17ac8a70c77c1a85e2f873fdfa5 to your computer and use it in GitHub Desktop.
Using xDebug with POSTMAN

Set the url with ?XDEBUG_SESSION_START=PHPSTORM and set a header Cookie: XDEBUG_SESSION=PHPSTORM

@raffaele-capasso
Copy link

raffaele-capasso commented Mar 9, 2023

@hendra-jti

Here it is:

{
   // 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": 9003,
            "pathMappings": {
                "/var/www/html": "${workspaceFolder}"
            }
        }
   ]
}

Please, change the pathMappings in according with your environment.

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