breakpoint not hit when using REST-clients
4 posts
• Page 1 of 1
breakpoint not hit when using REST-clients
Breakpoints do not hit when launching a request by REST-Client, like postman.
I have installed VS2015 and latest phptools.1.20.9095.msi.
For test I have created a simple index.php having just one line: phpinfo(); On this, I have set a breakpoint. Internal php engine is used for execution.
When launching the request by web browser (http://localhost:46xxx/?XDEBUG_SESSION_START=92xxxxxx) the breakpoint is hit as expected and the html response is renedered as expected when continuing. When doing the same on postman, the response is the same, but breakpoint is NOT working.
what to do?
I have installed VS2015 and latest phptools.1.20.9095.msi.
For test I have created a simple index.php having just one line: phpinfo(); On this, I have set a breakpoint. Internal php engine is used for execution.
When launching the request by web browser (http://localhost:46xxx/?XDEBUG_SESSION_START=92xxxxxx) the breakpoint is hit as expected and the html response is renedered as expected when continuing. When doing the same on postman, the response is the same, but breakpoint is NOT working.
what to do?
- hartmut stippich
- Posts: 2
- Joined: October 10th, 2016, 1:47 pm
Re: breakpoint not hit when using REST-clients
Hello,
Xdebug just doesn't know it should start to debug and connect VS. You can just add xdebug.remote_autostart = 1 to php.ini file. https://docs.devsense.com/debugging/troubleshooting#debugger-wont-work-when-dont-open-a-page-wait-for-a-request-from
Please let me know if that helped.
Thanks,
Xdebug just doesn't know it should start to debug and connect VS. You can just add xdebug.remote_autostart = 1 to php.ini file. https://docs.devsense.com/debugging/troubleshooting#debugger-wont-work-when-dont-open-a-page-wait-for-a-request-from
Please let me know if that helped.
Thanks,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
Re: breakpoint not hit when using REST-clients
yes, this helped. thanks for reply
- hartmut stippich
- Posts: 2
- Joined: October 10th, 2016, 1:47 pm
Re: breakpoint not hit when using REST-clients
Perfect!
I'm glad I could help.
Have a great weekend,
I'm glad I could help.
Have a great weekend,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 124 guests