Configure Eclipse Xdebug debugging tool in Ubuntu 13.04 + Firefox's easy Xdebug component, 13.04 xdebug

Source: Internet
Author: User

Configure Eclipse Xdebug debugging tool in Ubuntu 13.04 + Firefox's easy Xdebug component, 13.04 xdebug

Step 1: Install the php_xdebug extension and check whether the installation is successful.

[Html]View plaincopyprint?
  1. Sudo apt-get install php5-xdebug # installation command
Sudo apt-get install php5-xdebug # installation command
[Html]View plaincopyprint?
  1. Php-m # view commands
Php-m # view commands

Step 2: configure the xdebug extension in php. ini and add the following code to the last line:

[Html]View plaincopyprint?
  1. [Xdebug]
  2. Xdebug. remote_enable = 1
  3. Xdebug_remote_host = "localhost"
  4. Xdebug. remote_port = 9000
  5. Xdebug. remote_handler = "dbgp"
  6. Zend_extension =/usr/lib/php5/20100525 + lfs/xdebug. so
[xdebug]xdebug.remote_enable = 1xdebug_remote_host = "localhost"xdebug.remote_port = 9000xdebug.remote_handler = "dbgp"zend_extension=/usr/lib/php5/20100525+lfs/xdebug.so

Step 3: Configure Xdebug debugging in Eclipse. First, choose Window> Preferences> PHP> Debug> Installed Debuggers> XDebug.



Step 4: Set the default debugging browser in Eclipse, and find the corresponding one based on the red circle.



Step 5: Install the easy Xdebug component on Firefox



Step 6: Start to set breakpoints in the PHP file, and then click the Start xdebug session button in the lower right corner of the browser. When the page has any changes, it will jump to Eclipse, switch to Eclipse for single-step debugging.





Debug page after Successful Configuration



========================================================== ========

Install the xdebug extension "xdebug helper" in Google Chrome. The installation method is as follows:


Or access Links can also install https://www.google.com.hk/url? Sa = t & CTS = j & q = & esrc = s & source = web & cd = 1 & ved = 0 CCsQFjAA & url = % 68% 74% 74% 70% 3a % 2f % 2f % 63% 68% 72% 6f % 6d % 65% 2e % 67% 6f % 6f % 67% 6c % 65% 2e % 63% 6f % 6d % 2f % 77% 65% 62% 73% 6f % 74% 2f % 64% 65% 74% 61% 69% 6c % 2f % 78% 64% 65% 62% 75% 2d % 67% 6c % 68% 65% 70% 2f % 65% 72% 6e % 65% 6a % 61% 6c % 64% 69% 65% 6c % 64% 6a % 62% 69% 6a % 67% 6b % 6d % 61% 6b % 6d % 6f % 64% 67% 61% 6f % 63 & ei = YGLCUraYGqnOiAea1YCYDQ & usg = fingerprint & sig2 = 4yG_oVSqr839impViNfeLQ & bvm = bv.58187178, d. aGc & cad = rjt


After the installation is complete, you can see in the extension



Click to mark


Xdebug eclipse configuration problems

Have you installed WTK? If no, install WTK first, configure the wtk path in the eclipse's j2_options, import the WTK simulator, and try again.

If it is helpful to you, please remember to adopt a satisfactory answer. Thank you! Wish you a happy life!

Vaela
 
Eclipse + php plug-in + Xdebug build PHP perfect development/debugging environment

Directly download a PHP version [that is, the PDT] From Eclipse. Be sure to go to the official website of the original version of Eclipse, and update it to the latest version in Help> Check Updates. Remember not to select the Amazon server, but also drop the line. Another thing that reminds you: Because Eclipse is implemented in Java, the CPU usage is high and you have to be prepared. These plug-ins are available on Install New Software of Eclipse. If there is no way, find an Apanta. If you need Chinese characters, update them on Babel.Eclipse.org.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.