API/Attach To Process
4 posts
• Page 1 of 1
API/Attach To Process
I'm trying to debug a REST API (Magento), say I'm running an instance of that localhost:1234/, then from another instance of VS, I'm firing my REST calls, with a native .Net app, you can Attach to Process and step into the API instance, can I do that with remote debugging?
- silas2
- Posts: 7
- Joined: February 10th, 2017, 4:13 pm
Re: API/Attach To Process
Hello,
Attach to Process workflow doesn't work with PHP Debugging in VS. You need to have PHP Project setup, start the debugging usual way (F5) and make sure xdebug initiates the debug session. In case of REST API, the best way would be to setup remote_autostart 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,
Attach to Process workflow doesn't work with PHP Debugging in VS. You need to have PHP Project setup, start the debugging usual way (F5) and make sure xdebug initiates the debug session. In case of REST API, the best way would be to setup remote_autostart 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: API/Attach To Process
Yeees!!! It works. Thanks.
- silas2
- Posts: 7
- Joined: February 10th, 2017, 4:13 pm
Re: API/Attach To Process
Perfect! Happy to help
Have a good one,
Have a good one,
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 49 guests