Once you accept it, you will be automatically taken to you phpstorm's breakpoint. For the first time phpstorm you will ask be asked for confirmation dialogue box to accept connection from browser. Next, Again visit your browser and load any page (localhost/drupal7). Now open your browser & click on Start debugger in the bookmark toolbar.Īgain, Goto phpstorm. Open PhpStorm with drupal 7 project & click Start listen for PHP Debug connections (These option are at Top Right corner of your phpstorm) Now its time to debug our drupal 7 site with phpstorm & your browser. Now Drag & drop - Start debugger & Stop debugger to your browsers bookmarks Bar. Note : IDE key should be PHPSTORM, as we set in PhpStorm settings. Go to page & Generate XDebugger bookmarks. Once you have enabled extension then you need to add Debugger bookmarklets for chrome. XDEBUG PHPSTORM UBUNTU INSTALLNext, Goto you browser, install an Xdebug helper extension. Download PhpStorm 2020. XDEBUG PHPSTORM UBUNTU FULLNext, Open PhpStorm -> File -> Default Settings -> In the search box search with debug, Change Debug port to 9001, apply and ok.Īgain Open File -> Default Settings -> Search for IDE Key, Set IDE key as PHPSTORM, Apply & OK PhpStorm 2020.3 is now available This major release includes full support for PHP 8, static analyzers PHPStan and Psalm, Xdebug 3, Tailwind CSS, collaborative development via Code With Me, and much more. Next, you need to add below lines to the php.ini file zend_extension="/usr/lib/php5/20131226/xdebug.so" Next, you got to the php.ini file, in my case its located in /etc/php5/apache2/php.ini Or to find where its is located you can find by this command $ locate php.ini Next find the path of the file where xdebug.so is located, you can find by this command $ locate xdebug.so In my case, since xdebug is already installed, it showing xdebug else you should install the xdebug., follow below command to install xdebug. With Xdebug v2.3.2, Copyright (c) 2002-2015, by Derick Rethans With Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies Initally open terminal, and check the php version The configuration made in this article refers specifically to the Ubuntu machine, which has Apache2 webserver running and xDebug installed. Debugging the code is one of the important process for a developer, So now this article will help you to configure the Phpstorm for debugging the Drupal 7 application with the help of xDebug.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |