Debugging my Larael (Lumen) REST service from postman?

Hello,

So I can hit my breakpoints in Get requests issued directly from a chrome browser that has the debug plugin enabled and listener turned on in Intellij, so the debugging system is working as expected in this capacity (all local).

I'm assuming there must be some setup that I can apply that will accept calls from Postman and break accordingly?

Sorry if this has been asked before. but my searching skills have failed to find such information.

0

Hi there,

POST requests are debugged in the same way. Xdebug helper extension sets Xdebug cookie that should be carried over with every request (as long as request is made to the same domain, of course).

Postman is the same -- just set up the Xdebug cookie for your dev environment (you should have at least dev & prod environments). Cookie name -- XDEBUG_SESSION

1

Hi Andriy.

I happened upon a medium blog that explained this. Easy addition, working fine. Thanks again!

0

请先登录再写评论。