You are here: User Guide > Concepts > Debugging

Debugging

The Zend Studio debugging function allows you to test your files and applications and detect errors in your code.

The debugger allows you to control the execution of your program using a variety of options including setting breakpoints, stepping through your code, and inspecting your variables and parameters.

The different debugging methods Zend Studio include:

PHP CLI Application

Allows you to debug files on your workspace using Zend Studio's internal debugger.
The Internal Debugger enables developers to locally validate freshly developed code before deploying to a web server. The internal option means that files located on your workspace can be debugged. When debugging internal files the Zend Studio Internal Debugger uses its own PHP executable that was installed together with Zend Studio.

 

See Locally Debugging a PHP Script for more information.

PHP Web Application

Allows you to debug applications situated on a server. It allows you to debug whole applications, including any required interactive user input.

The PHP Web Page Debug has an option to give the files you are working on first priority when debugging, using the "Local Copy" option. This means that, when possible, file content is taken from the files situated on your Workspace. This prevents you from having to upload the latest revisions.

Note:

It's recommended that your local project structure reflect the project structure on your server.

See Debugging a PHP Web Page  for more information.

Note:

Your server must be running the Zend Debugger or XDebug in order for remote debugging and profiling capabilities to function.
The Zend Debugger comes bundled with Zend Server, but can also be downloaded as a separate component from http://www.zend.com/en/products/studio/downloads. For instructions on manually installing the Zend Debugger, see Installing the Zend Debugger.

URL Debugging

Allows you to enter a URL to debug an application on a server. Only server files will be debugged, so the files do not need to exist locally in your Workspace.

 

See Debugging a URL for more information.

Note:

Your server must be running the Zend Debugger  in order for remote debugging and profiling capabilities to function.
The Zend Debugger comes bundled with Zend Server, but can also be downloaded as a separate component from http://www.zend.com/en/products/studio/downloads .

Toolbar Debugging

Allows you to Debug files and applications directly from your browser using the Zend Debugger Toolbar, available for download from the Zend Studio Resources site (http://www.zend.com/en/products/studio/downloads).

 

See Debugging Using the Zend Debugger Toolbar for more information.

 

 

Related Links:
Debugging Files and Applications

Running and Analyzing Debugger Results

 

 

©1999-2012 Zend Technologies LTD. All rights reserved.