Zend Studio Usage Essentials

Source: Internet
Author: User
Tags svn svn update zend

Zend Studio Usage Essentials
Authoring Environment:
Zend Studio 5.1.0
PHP4 & PHP5
1. Version control
Zend Studio 4 only supports CVS, Zend Studio 5 begins to add Subversion support, the latter is simpler to use, and this article

Use the Zend Studio integration as an example.
Zend Studio uses CVS by default, and you can choose Subversion in the tools-> preferences-> source control.
Configure the Zend Studio client to use SVN:
Open the Tools-> "Subversion"-> "checkout" To display the following dialog box:
Module ULR refers to the location of the source program to be downloaded in the source library, as shown in the figure
The working directory is the location where the program is downloaded to the local computer, as shown in the figure, and the program is created automatically if the directory you are filling does not exist.
Username password defaults to null if not required.
The above menu is captured in the Zend Studio Code editing area.
Subversion menu Command Description:
Update: Synchronizes the SVN Source library end file to a local working copy.
Commit: Commit changes to the current working copy. This is a place where
code conflicts can occur. The safest solution is to update it first .

, and then modify the program and commit.
Add: Adds the current file to the version Control Library. The original version is not under version control. Like a newly created program or file.


Delete: Deletes the current file from the version Control Library from the SVN version control.
Revert: Cancels all local edits to the current file. And resolve all the conflicting states.
Resove: Deletes the "conflicting" state of the working copy file or directory.
Status: View the status of the current working copy files and directories.
diff: Compares the current file with the corresponding file in the source library.
LOG: All changes to the current file, from the beginning of the creation of each change can be displayed.

Note: The above command can also operate on multiple files or folders at the same time in the project area on the left side of Zend Studio.

After the modification is complete, you can get the latest program by SVN update in the project directory where the program runs the server.

SVN Advanced Operations:
A. Conflict resolution (merging others ' modifications)


B. Branching and merging
2. Program debugging
Zend Studio supports two debugging methods: Internal debugger, server-side debugger

Internal debugger: Executes a program with a PHP4/5 engine that is local to Zend Studio.
Server-Side debugger: Use the PHP environment on the server
to execute programs.

because the server is typically Linux, and we develop the use of general for Windows, then the PHP environment is certainly different, choose to use server-side

The debugger is more reasonable.

The following is an example of server-side debugging to illustrate the problem:

A. Configuring Zend Studio to support server debugging
Open the Tools-> "preferences"-> "debugging", which displays the following dialog box:
Select the server debug mode and fill in the correct URL in the debug server URL.

Now install the PHP4 and PHP5 two versions of the debugger on the test server.
PHP4 corresponds to the URL: http://192.168.3.33
PHP5 corresponds to the URL: http://192.168.3.33:81
The other is set to the default value.
Test the debugger for proper configuration:
Open: "Tools"-> "Check Debug server connections" for testing.

B. Debug command description

"Add a watch point ... ": That is to add a variable that you care about, and it displays its value in a separate window.

"Debug URL ... ": Step through the given URL

"Profile URL ... ": Analysis of the execution of a given URL, including the invocation of functions in the program, efficiency, etc.

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.