Overview of Debugging
From Delphi for PHP Documentation Wiki
Summary: Provides general debugging information and describes the debugging tools available in Delphi for PHP.
The debugger lets you find and fix both runtime errors and logic errors in your Delphi for PHP application. Using the debugger, you can step through code, set breakpoints and watches. As you debug your application, the debug windows are available to help you manage the debug session and provide information about the state of your application.
Contents |
[edit] Stepping Through Code
Stepping through code lets you run your program one line of code at a time. After each step, you can examine the state of the program, view the program output, modify program data values, and continue executing the next line of code. The next line of code does not execute until you tell the debugger to continue.
The
Run menu provides the
Trace Into and
Step Over commands. Both commands tell the debugger to execute the next line of code. However, if the line contains a function call,
Trace Into executes the function and stops at the first line of code inside the function.
Step Over executes the function, then stops at the first line after the function.
[edit] Breakpoints
Breakpoints pause program execution at a certain point in the program or when a particular condition occurs. You can then use the debugger to view the state of your program, or step over or trace into your code one line or machine instruction at a time. The debugger supports source breakpoints which pause execution at a specified location in your source code.
[edit] Watches
Watches let you track the values of program variables or expressions as you step over or trace into your code. As you step through your program, the value of the watch expression changes if your program updates any of the variables contained in the watched expression.

