Let's learn how you can set up a debugging environment in Ubuntu using Eclipse that is probably the best method for dDebugging Magento is a major thing in Magento web development.ebugging Magento. If you want to know more, take a look at Origin Keygen.  Step 1: First download and Install Eclipse To customize Magento, download a relevant package and Install Eclipse. Unzip the package and copy it to some location, for example /home/user/ and similar. Remember, Eclipse IDE requires a Java Runtime Environment (JRE) and thus it needs to be installed on your machine to run Eclipse. The JRE version must be Java SE 5 or greater. Step 2: Now Set up PHP Project Open the Eclipse IDE and it will ask you about your Workspace. Browse to your workspace, where your Magento site is running locally. Set the default point to /var/www and click OK. Now go to File->New -> New PHP Project, and add your folder name on Project Name and click Finish. Eclipse will take some time on building your project and once it is finished, go to the next step. Step 3: Now Install X-Debugger Run the following command: 1-sudo apt-get install php5-xdebug Step 4: Configuring X-Debugger Type the following in your command prompt. 1- sudo gedit /etc/php5/apache2/conf.d/xdebug.ini Now add the following settings on the .ini file 1- xdebug.remote_enable=1 Now restart the apache server using the following command: sudo /etc/init.d/apache2 restart Step 5: Now Debug Configuration on Eclipse Go to menu and click Window->Preference. You will find PHP->Debug Node in the left. Click Debug and Select PHP Debugger - XDebug. To Set Server click PHP Servers and add new server as follows and click Finish. Step 6: Configure debug conf for Magento Projects Click menu and go to Run-> Debug Configurations. Find PHP Web Page and Right click to add a new configuration. Step 7: Now Add a Break-Point and start debugging Add a break-point on your code and start debugging your script by clicking the BUG icon. Tips before getting started 1. Set up an external browser to run your debug configuration by clicking Window->Preference and type in web browser. Click on the Web Browser to select Use External Web Browser. If not clickable click the restore default button. 2. Enable multi-session debug by going to preference. Search for debug. Find PHP -> Debug ->Installed Debugger. Click the XDebug and then click configure. Check Use Multisession checkbox and save. The above mentioned steps will help you enjoy an out of the Magento web development feel.  For more info, visit this webpage



Leave a Reply.