
You can switch back to PHP project perspective by clicking the small PHP button in the upper right corner. You'll be asked to switch to Debug perspective. Next time you can click the Debug button in the toolbar instead.
Click in the toolbar debug button (small down arrow) > Debug As > PHP Web Application.
Set a breakpoint on line 12 (left of the line number).Double click index.php to open it in the editor.Now open a web browser at A new xdebug configuration should be displayed. Zend_extension = C:\xampp\php\ext\php_xdebug-2.4.Ĭreate a new text file in C:\xampp\htdocs\info.php and add the following lines: Edit C:\xampp\php\php.ini and add the lines:.Move the downloaded file to C:\xampp\php\ext.A download link is generated with the right XDebug version for XAMPP.
Paste the contents and click the Analyze my phpinfo() output button. Open to find out which xdebug version. Open C:\xampp\phpversion.txt in a text editor. Click the Shell button to open a command prompt and type:. A wizard helps you to generate a download link: The right XDebug version should be downloaded which is created for only one PHP version. This is a PHP extension which provides debugging and profiling capabilities. Next step is to install XDebug which is used by Eclipse. The first step is to setup a free XAMPP web server which stands for: X=Cross-Platform, Apache, MariaDB, PHP and Perl. I could not find good tutorials on the web, so I decided to share my experiences with you, step by step. A clean Windows 7 installation or higher. It allows you to step through the code, set breakpoints, watch variables and many more. Question: Do you need a PHP debugger? Answer: When you're developing websites in PHP, then the answer is YES.Ī debugger can save you a lot of time to find bugs in your PHP scripts, such as Joomla! components, modules or plugins. At the end of this Instructable, you're ready to debug your own website. You'll get a quick installation guide in 9 detailed steps. The purpose of this Instructable is to setup a freeware XAMPP webserver on Windows, install a Joomla! Content Management System and finally debug PHP scripts with Eclipse.Ī Linux Ubuntu Instructable with LAMP is located here.