Make the PHP laravel app (which is open in PHPStorm) stop while processing this request.Under the hood, the button sends an AJAX request to url So, the scenario I need to set up is this, step by step: I didn't manage to configure Javascript debugging, but I don't need to debug Javascript using PHPStorm (Chrome developer tools can be used for that), I only need to debug PHP which runs in response to an external (Javascript AJAX) request. Javascript app is in I:\xampp\htdocs\apps\javascript (Windows path for PHPStorm project root) and is available via url This app doesn't have any PHP code.įollowing the tutorial above, I managed to "listen to PHP Debug connections" and initiate the PHP app directly from the browser. PHP app is in I:\xampp\htdocs\apps\laravel\ (Windows path for PHPStorm project root) and is available via url This app doesn't have any Javascript code, it only accepts and returns Json. I think the above configuration assumes that both php and javascript apps are under the same Project root. Is it possible to configure the debugger for such scenario? The debugger opens the javascript app in the browser, which sends the AJAX request and my PHP app sends the response, but it doesn't stop at breakpoint. I tried to change the PHP Web Application debug config url to the url of the AJAX app ( and then run the debugger. But I don't know how to start the debugger from AJAX, there is only option to start it from an address in browser. it's coming from AJAX request and not directly from browser. I would like to debug some aspects of it which only make sense if the request is real, i.e. The problem is that this PHP application is designed to serve json responses to AJAX requests coming from javascript apps. I have a PHP application in PHPStorm which runs on my test server ( So when I debug it as a PHP web application, all is fine: I run the debugger, it opens Chrome with appropriate address and the app stops at breakpoint inside its PHP code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |