![]() In the example below my file is in project HelloWorld with file name index.php. In the URL part you need to locate the file that you want to debug starting from localhost. For example index.php Ĭhoose a PHP Web Page (On old PHPStorm version it might be called PHP Web Application) on the drop down after you click the green plus.Įdit the Configuration Name and add new server. Add new server with Host = localhost, on port 80 with Xdebug debugger:Īt last you need to select the newly created server, and edit the URL. 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. Lucky for you, I like to share Step by step: Go to php.ini file, make sure that xdebug.remoteenable 1. So, after scavenging information from multiple guides, I finally got it to work, and wrote it in a document for my teammates. Using a proper debugger is definitely the best way to debug. Restart XAMPP and run the Apache and MySQL modules again. At my workplace, we use PHPStorm as an IDE, and our local environment is Wamp (the headline says for dummies). In recent articles, we have presented some recommendations and tools to debug Drupal migrations. 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
0 Comments
Leave a Reply. |