![]() If you’ve done everything correctly, you should see the following screen:īefore configuring the debugger, you need to return to the home screen and create new project. Then you need to choose Empty PHP project and make sure that the location of the project is in htdocs folder in XAMPP.Īfter that you need to create a new php file inside your project. Restart XAMPP and run the Apache and MySQL modules again. Zend_extension = "C:\xampp\php\ext\php_xdebug-2.6." If everything is alright, you should see this: In order to do that, you need to find your XAMPP folder and choose the " php" directory and in it select php.exe On the default interpreters page, you need to click the green plus and press Local Path to Interpreter. You need to choose the PHP Executable now. You need to change the PHP version to your installed PHP version:Īfter that you need to change the PHP Interpreter. If you have started PhpStorm before, you need to either close your current project using File -> Close Project option or simply skip this step and go to File -> Default Settings.Īs you can see in the picture, you need to go to the settings menu.Ħ. Once we are in the settings menu you need to go to Languages & Frameworks tab and select PHP. Now, you need to connect the Debugger (Xdebug), Apache Server and MySQL DB (XAMPP) to PhpStorm:ĥ. ![]() You need to exit the program that holds port 80, and the Apache server will start. If you have Skype or a torrent client running, the Apache server will not start. If everything is correct, the Apache label will become green, and you will see the default ports – 80. After you choose the language you prefer, you will see the main screen of XAMPP.Ĥ. ![]() The first time you start XAMPP you will get language selection screen. Install XAMPP in the default directory C:\xampp, or you might encounter permission troubles later on.ģ. After page reload PHPStorm should break the execution at the breakpoint which you have previously set.First you need to install and configure XAMPP and integrate it with PhpStorm (4 steps):Ģ. php file for which you are sure that will execute after reloading page in your browser. Set a breakpoint (or breakpoints) in the PHPStorm in the. Run the xdebug listener in your browser from which you run the website:Įnable PHPStorm to listen incoming connections: Make sure that breakpoints are not disabled (enabled by default):.Validate the debug configuration: Run > web server debug configuration.Run > Debug & Configurations > PHP remote debug.File > Settings > Languages & Frameworks > PHP > Servers.File > Settings > Languages & Frameworks > PHP.File > Settings > Languages & Frameworks > PHP > Debug and configure it as on the screenshot:.Open the application (base root folder) via PHPStorm.Install and configure XDebug add-on for your favorite web browserįor Chrome, you can download/install it from here.įor Firefox, you can download/install it from here.Ĭonfigure the extension to have proper IDE Key: PHPSTORM Xdebug.max_nesting_level=1000 note: this is related with Drupal CMS Xdebug.profiler_output_name=cachegrind.out.%t.%p Open the php.ini file (usually located at: c:\wamp\bin\apache\apache2.4.27\bin\php.ini) and add the following lines at the end of file: This blog post describes step by step tutorial to debug PHP applications with PHPStorm using XDebug extension on localhost.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |