

Insert the following changes to lines 1-47 in your code (changes are marked in red):.In PhpStorm, open the 'general-template.php' file located in the 'wp-includes' folder.This step includes the example code for simulating errors in the WordPress application. We're now going to insert some faulty code to simulate errors in our application, and then initiate a debugging session in PhpStorm from Z-Ray. For more information, see Troubleshooting Connectivity Issues. If you still can’t see Z-Ray, there may be a connectivity issue. For more information, see Enabling/Disabling Z-Ray. Make sure Z-Ray is enabled from the Administration | Components page in the Zend Server UI. To run the application in our browser, right-click the project's 'index.php' file, select Open in Browser, and select your preferred browser.Īs soon and the page loads, Z-Ray is displayed at the bottom of the page.Leave the default project web path, and click Finish.The Specify Web Path dialog is displayed. Select Use existing server, and click Next.The Specify Local Server dialog is displayed. Browse to the WordPress folder in the root directory of your Web server, and click Project Root.The Choose Project Directory dialog is displayed. Select the first option, and click Next.The Choose Your Scenario dialog is displayed. In the menu-bar, select File | New Project from Existing Files.Our first step is to create a new project in PhpStorm from the existing WordPress files we installed on the root directory of our Web server. For detailed instructions, see this tutorial. Download WordPress from and install it on the root directory of your Web server.For detailed installation instructions, see the Zend Server Installation Guide: DEB / RPM / Windowsĭownload and install PhpStorm Early Access version from JetBrains. Debug/profile the application from Z-Rayĭownload and install Zend Server 8.x or above from the Zend.Configure PhpStorm to debug with Zend Server.To create a new project in PhpStorm from existing files.Using Z-Ray, you can directly debug or profile your applications in PhpStorm, allowing you to see how your code is running as you develop it, and empowering you to deliver higher-quality code faster. Zend Server's integration with PhpStorm allows you to easily debug your applications and quickly identify those weak spots in your code.
