gwomacks / php-debug

Atom Text Editor package for PHP debugging
MIT License
119 stars 31 forks source link

No debug on POST requests? #212

Closed DotFreelance closed 7 years ago

DotFreelance commented 7 years ago

I'm using Postman to send requests. I have xdebug installed and configured to listen on defaults, with auto start as true. I have the debugger open in Atom for php-debug.

I am able to see the debugger stall at the breakpoints for GET requests whether I use Chrome or Postman. However, using Postman to create a POST request does not stop at the breakpoint I've set for that POST route in the controller method ( Laravel. )

The breakpoint is passed over. I have a test response at the end of the method that just responds with "Test" to confirm that the breakpoint is being passed over.

Unless I've missed something, or unless xdebug isn't capturing POST requests ( unlikely, I've captured hundreds of them in PHPStorm ) then I think php-debug may not be correctly capturing all request types.

After searching I wasn't able to find any information or any others who have this issue -- most people don't even discuss POST requests for debugging, so I'm not sure the breadth of folks who have tried this.

If I've missed something that's even better for me. Thank you for taking the time to read this.

DotFreelance commented 7 years ago

For future users: this doesn't have to do with the type of request, that was a coincidence as I've discovered. It's actually a different issue: you can apply debug points to empty lines and the debugger will skip them, for some reason! Closing this issue.