{"id":19867,"date":"2016-02-04T17:26:48","date_gmt":"2016-02-04T17:26:48","guid":{"rendered":"https:\/\/blog.jetbrains.com\/phpstorm\/?p=9759"},"modified":"2024-01-09T14:58:57","modified_gmt":"2024-01-09T13:58:57","slug":"debugging-from-the-rest-api-client-in-phpstorm-11","status":"publish","type":"phpstorm","link":"https:\/\/blog.jetbrains.com\/phpstorm\/2016\/02\/debugging-from-the-rest-api-client-in-phpstorm-11\/","title":{"rendered":"Debugging from the REST API Client in PhpStorm 11"},"content":{"rendered":"<p>New in PhpStorm 11, you\u00a0can now step-debug your REST API right from within the REST API test tool, without ever leaving your IDE. It&#8217;s\u00a0live in the <a href=\"https:\/\/confluence.jetbrains.com\/display\/PhpStorm\/PhpStorm+Early+Access+Program\" target=\"_blank\" rel=\"noopener\">current EAP<\/a> and planned for release in Q2 2016.<\/p>\n<p><!--more--><\/p>\n<p>The <a href=\"https:\/\/www.jetbrains.com\/phpstorm\/help\/testing-restful-web-services.html\" target=\"_blank\" rel=\"noopener\">REST API test tool<\/a>\u00a0has been bundled with PhpStorm for a long time, but you&#8217;ve never been able to easily initiate a step-debugging session <span class=\"st\">\u2013<\/span> until now.<\/p>\n<p>PhpStorm 11 has a brand new button in the API test tool that\u00a0sends the HTTP\u00a0request with the right cookie automatically set, so step debugging your API has never been easier.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-9761\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2016\/02\/phpstorm-debug-rest-api.png\" alt=\"debug rest api\" width=\"800\" height=\"401\" \/><\/p>\n<p>To use the debugger, just make sure\u00a0Xdebug is configured and enabled. Now\u00a0you can use the new &#8220;Submit request in debug mode&#8221; button to easily send the request and initiate the debugger.<\/p>\n<p>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.<\/p>\n<p>Enjoy!<\/p>\n<p><em>\u2013 Gary and the PhpStorm Team<\/em><\/p>\n<p>JetBrains<\/p>\n<p>The Drive to Develop<\/p>\n","protected":false},"author":1152,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","categories":[826,808,907],"tags":[2498,632,45,202],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm\/19867"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/types\/phpstorm"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/users\/1152"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/comments?post=19867"}],"version-history":[{"count":1,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm\/19867\/revisions"}],"predecessor-version":[{"id":432087,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm\/19867\/revisions\/432087"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/media?parent=19867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/categories?post=19867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/tags?post=19867"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/cross-post-tag?post=19867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}