0

I have a PHP web application that also exposes some REST services. I am unable to debug (set breakpoints, step over, step into code) my REST services. I've found a thread with a similar title. The solutions pointed out therein are mostly about how to test RESTful services using RESTClient or HTTP4e.

I am able to debug the web application using the built it browser in Eclipse PDT. If I set breakpoints in code and Run->Debug, I am able to hit the breakpoints etc.

For REST services, I'm unable to do this. If I hit Debug, the normal application control flow occurs starting with index.html.

For all my API's I require some authentication headers to be supplied with the request so I'm unable to simulate this using the Debug Configurations settings.

Help is appreciated.

Community
  • 1
  • 1
Code Poet
  • 11,227
  • 19
  • 64
  • 97

1 Answers1

0

XDebug uses cookie for debug. So, you should include generated cookie (in browser) into your REST client.

Alex Kapustin
  • 1,869
  • 12
  • 15