Next: Running Your Project In The Debugger, Previous: Debugging Your Project, Up: Debugging Your Project
There are various methods you can use to debug your project. One
simple method is to place code in the project source that will display
useful information (such as the value of a variable using var_dump
) at a critical
point in time during program execution. However this can be cumbersome,
especially in larger projects, where it may be difficult to follow the
flow of the program execution.
A superior alternative is to use the Integrated Step Debugger. It allows you to step line by line through your project as it executes and easily determine program execution flow. You can inspect the values of variables while the program is paused (with mouse over). You can set breakpoints so that the program will be Paused when execution reaches the source file and line you specify. You can also Pause a running program and begin stepping where execution left off.
Note that the debugger operates in Interpreted mode. This means your project is not running as a compiled binary while it runs in the debugger.