Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using xDebug with POSTMAN

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

@aeciolevy
Copy link

aeciolevy commented Jun 17, 2018

I am trying to using it with Visual Studio Code, so I change it to XDEBUG_SESSION=XDEBUG_ECLIPSE, but it is not working.
I checked the request from my client with the xdebug extension and I saw the Cookie on the header, but it is not working at all, Have you tried it with VS Code?

@Nikunj-acharya
Copy link

Nikunj-acharya commented Jul 17, 2018

Same here. Trying with XDEBUG_SESSION_START=XDEBUG_ECLIPSE as GET parameter and XDEBUG_SESSION=XDEBUG_ECLIPSE as Cookie, but not working in chrome or in postman.

@axelitus
Copy link

axelitus commented Feb 27, 2019

There is no need to add both, either one should work (either the QueryString parameter or the Header).

@ronaldroe
Copy link

ronaldroe commented Sep 30, 2022

I know this is super old, but the answer is XDEBUG_SESSION=VSCODE

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