Debugging from the REST API Client in PhpStorm 11

New in PhpStorm 11, you can now step-debug your REST API right from within the REST API test tool, without ever leaving your IDE. It’s live in the current EAP and planned for release in Q2 2016.

The REST API test tool has been bundled with PhpStorm for a long time, but you’ve never been able to easily initiate a step-debugging session until now.

PhpStorm 11 has a brand new button in the API test tool that sends the HTTP request with the right cookie automatically set, so step debugging your API has never been easier.

debug rest api

To use the debugger, just make sure Xdebug is configured and enabled. Now you can use the new “Submit request in debug mode” button to easily send the request and initiate the debugger.

Once the request is set and the breakpoint is hit, you can debug your API endpoint in exactly the same way you can debug a traditional HTTP request, or command line script.

Enjoy!

– Gary and the PhpStorm Team

JetBrains

The Drive to Develop

About Gary Hockin

Gary Hockin has been creating code to power web applications for 15 years, the last three of them at an extraordinary level. He is handsome, talented, funny and articulate, and also extremely modest. Gary is a valued contributor to Zend Framework 2 and is a member of the community review team. He's married and has two wonderful children, and when he's not coding, writing about code, speaking about code or reading about code, he can usually be found in the pub playing pool.
This entry was posted in Cool Feature, Early Access Program, PhpStorm and tagged , , . Bookmark the permalink.
  • http://www.protonbits.com Protonbits

    If we debugging something in PHP Development we also can use the ZEND HTTP clients and Guzzle tool. This kind of tool also send the debugging and testing APIs.

  • https://www.youtube.com/watch?v=Ap56AEAPSH0 Webslesson

    I learn something new from this post. Thanks for sharing this tutorial. I really enjoyed your post. Keep it up. https://www.youtube.com/watch?v=Ap56AEAPSH0

  • Tom

    What about advancing authentication features? HTTP digest for instance…

  • lovec

    How the ide key can be configured? I have XDebug up and running for standard HTTP requests with chrome extension. But when I try to use it with REST client, all I get in debugger is “Waiting for incoming connection with ide key ‘19473’”, where my xdebug is configured with idekey=PHPSTORM. I am unable to find where to change the ide key for REST client

  • Endive software

    Symfony Expert a leading Symfony Web Development and Web Design company in USA. You can get best Symfony development services from here. send your requirement : http://symfonyexpert.com/

    Skype : endive-consulting

    Email : Sales@symfonyexpert.com