Welcome to YLOAN.COM
yloan.com » misc » How To Debug Magento Using Eclipse On Ubuntu
Gadgets and Gizmos misc Design Bankruptcy Licenses performance choices memorabilia bargain carriage tour medical insurance data

How To Debug Magento Using Eclipse On Ubuntu

Lets 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.

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.

by: Pamela adreson
Guidelines For Deciding The Cost Of A Catering Job The Benefits Of Personal Training Benefits Of Having Binchecker Significance Of Right Appointment In Firms One Progression Pattern That Spirals Permanently In Place Faqs Explaining Benefits Of Hot Yoga Kashmir The Natural Wonderment In The Himalayas What Experienced Car Accident Lawyers In Utah Can Do For You? Significance Of Right Appointment In Firms Two Tips To Buy Visitors Coverage Ireo Hills Important Notes For Good Dining Room Furniture Zinc Ores Xjx Series Flotation Machine
print
www.yloan.com guest:  register | login | search IP(216.73.216.40) California / Anaheim Processed in 0.010313 second(s), 7 queries , Gzip enabled , discuz 5.5 through PHP 8.3.9 , debug code: 52 , 2716, 85,
How To Debug Magento Using Eclipse On Ubuntu Anaheim