If you did, the page will be waiting for you to do something in PhpStorm (like continue execution). If you're trying to use access a page of your application and it seems to be stuck "spinning" without the page ever loading, make sure you didn't accidentally leave debugging turned on in PhpStorm. When you're done debugging, don't forget to stop PhpStorm from listening for Debug connections in the Run menu (or click the "Stop Listening." icon). You can also use function keys.step over lines of code with F8, step into a function with F7 and run to the next breakpoint (or to completion if no more breakpoints are defined) with F9. You can use the icons in the Debug panel to navigate through the code. The Debug panel should now be visible showing the line number where it stopped as well as all the variables that are available for you to inspect. Click the green + icon and choose PHP Remote Debug. The browser will appear to sit there and "spin" like the page is still loading when debugging is active. Having given the manual a glance (RTFM, I know), and come up wanting, I'd like to ask if anyone out there would like to hand hold me through setting up PHPStorm with XDebug so I can stop hating myself for not studying the underlying systems well enough, and get back to coding. Configure PhpStorm In PhpStorm, choose Run Edit Configurations. When you've done both, it will look like: In PhpStorm, choose your Remote Debug run configuration in the drop down and click the Start Listening for Debug > Connections button. To actually debug, debugging needs to be turned on both in the browser (see link in Resources below) and in PhpStorm. Enter "PHPSTORM" in the Ide key (session id) field.į. This Local Add-on helps to configure the connection between Xdebug and PHPStorm. ![]() * Enter the absolute path to your web root directory in the _Absolute path on the server_ section for the webapp directory.Į. Step Debugger Local Addon: Xdebug + PHPStorm. * Select Xdebug in the _Debugger_ drop down. * Enter 443 for the _Port_ since if your site is accessed via HTTPS. Add a new server by clicking the green '+' icon. Choose a server by clicking the '.' button beside the Servers field.ĭ. Add a name like "Remote Debug" in the Name field.Ĭ. ![]() You can also Validate the Configuration of a Debugging Engine in PhpStorm to make sure that the provided configuration parameters are correct. The phpinfo output should contain the section for your debugging engine: Xdebug. Click the green '+' icon and choose PHP Remote Debug from the drop down.ī. Create a php file containing the phpinfo () function call. In PhpStorm, choose Run | Edit Configurations.Ī. ![]() Sudo /etc/init.d/httpd restart Step-by-step guide Configure PhpStorm
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |