The Internal Debugger enables developers to locally validate freshly developed code before deploying to a web server. The internal option means that only files located in local directories can be debugged. When debugging internal files, the Zend Studio Internal Debugger uses its own PHP version that was installed together with Zend Studio in the installation process. This PHP version is compatible for PHP4 and PHP 5.
Configuring Internal Debugging
Open the Preferences window from the main menu, select Tools | Preferences.
Select the Debug tab.
From the Debug Server Configuration area of the Debug tab, select a Debug Mode (Server/Internal).
The debug mode setting determines the debug toolbar settings (Internal or remote debugging)
Click OK
These settings will be applied when debugging.
The following lists the tools that can be used in the debugging process:
|
|
Debug Messages Window - Locate and define errors using the messages generated and displayed in the Debug Messages window. |
|
|
Variable Window and Watches Window - Watch and reference variables, functions, classes, and expressions. |
|
|
Stack Window - Monitor the call stack and passed variables. |
|
|
Debug both the Calling and Called Functions - Using Step in, Step out, Step over, and Breakpoints. |
|
|
Control the Debugging Session - Use complete, or line-by-line debugging options using tools such as Breakpoints and Go to Cursor. |
|
|
View and Render Standard Output - Using the content generated to the Output window. |
|
|
View Buffer - Using the content buffered in the Buffer Window. |
To expand your internal debugger functionality you'll need to add extensions to it.
You can add some extension directives to the php.ini file with the following syntax:
extension_dir="(EXTENSION DIRECTORY)"
extension=(EXTENSION NAME)
Where {EXTENSION DIRECTORY} is the directory containing the extension file(s).
For example, on Windows, you can use:
C:\ProgramFiles\Zend\ZendStudioClient-5.1.0\bin\php4
You can obtain more information from: http://www.zend.com/support/knowledgebase.php?kbid=14&view_only=1
|
|
|
|
|
Related Links: |
|
|
|