I have an iOS mobile application and REST API written in Laravel PHP. My goal is to set a breakpoint in one of my API endpoints in PHP code in PhpStorm IDE, and using a mobile application hit that breakpoint and debug.
I have Xdebug installed and it's listening on port 9000.
If I run a built-in PHP Web Server using PhpStorm configuration, start listen to PHP Debug Connections and simply go to http://localhost:9000/index.php in Chrome browser, I do succeed to hit a breakpoint placed in that file.
But if I go to http://localhost:9000/register from the browser, I get 404.
Maybe I need to tell it to use my routes.php file?
What is my problem?
What are the steps to debug Laravel PHP REST API from a mobile application?