Debugging

 

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.

 

Studio includes several different debugging methods:

 

PHP Script Local Debugging

Allows you to debug files on your workspace using 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 Studio Internal Debugger uses its own PHP executable that was installed together with Studio.

 

See Locally Debugging a PHP Script for more information.

 

PHP Script Remote Debugging

Allows you to debug files on your workspace using your server's Zend Debugger.

This allows you to debug local files using the Zend Debugger situated on your server. This allows you to test your files with the production environment, and allows you to utilize the extensions installed on your server.

 

See Remotely Debugging a PHP Script 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 Core and Zend Platform, but can also be downloaded as a separate component from http://www.zend.com/en/products/studio/downloads.

 

PHP Web Page Debugging

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 in order for remote debugging and profiling capabilities to function.
The Zend Debugger comes bundled with Zend Core and Zend Platform, but can also be downloaded as a separate component from http://www.zend.com/en/products/studio/downloads.

 

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 Core and Zend Platform, 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/products/studio/downloads).

 

See Debugging Using the Zend Debugger Toolbar for more information.

 

 

Related Links

Related Links:
Using the Debugger

Running and Analyzing Debugger Results