Eclipse Debug PHP (about Zenddebugger) usage ____php

Source: Internet
Author: User
Tags php debugger php script

Apache Version: 2.2

PHP version: 5.2.11

Eclipse Download Address: Http://downloads.zend.com/pdt/all-in-one/zend-eclipse-php-galileo-SR1-win32-x86.zip

Run Eclipse.exe after decompression

Choose a work space

I chose E:/phpworkspace.

To insert one step at a time

Open the Apache configuration file httpd.conf

Find "DocumentRoot"

Modifying the value of DocumentRoot

DocumentRoot "E:/phpworkspace"

Build PHP Project

Named "debugphp"

Create a PHP File: "debug.php"

Write code as follows:

<HTML> <BODY>

Add a breakpoint at line 103th

See the debugger plug-in with this eclipse version

window--preferences--php-php Executables

The default is the first one, no tube

This step is just to let people take a look

You can skip.

Ready to run the deployment

Click the down small arrow on the Debug button

Select "Debug Configuration ..."

In the pop-up dialog box, make the following settings

1. Double-click "PHP Script" to create a new PHP script "New_configuration"

2. Modify the Name property "Zend Debugger"

PHP Debugger:zend Debugger

PHP executable: Default on the line, you can also choose the default settings here

PHP File: Click "Browse" to select "debug.php"

Check the "breat at a" option

The above setup is complete

Click the "Debug" button

Will pop up the view Jump dialog box that looks like it

I don't know how to debug a program.

Run down

You can see that the corresponding view has a corresponding value appear

Run to the end you can see

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.