If you haven’t stopped the previous debugging session, do so now. In the Debug view, click on the Terminate button in the toolbar. The Debug target line will now have<terminated>
at the beginning and the icon will lose its motion arrows, indicating that the process has stopped. Click on this motionless Debug target line to highlight it and click on Remove All Terminated Launches to remove it from the view.
Let us try a slightly more complicated debugging exercise. Now that we have a familiarity with the Debug perspective and what we’re looking at, let’s try to navigate through a session. Debugging in PHPEclipse follows industry-common practices and works very similarly to debugging in other IDEs. The terms you encounter here can be carried over to other languages and other tools.
First, replace the code in debug.php
with this code. This code sets some variables, and calls a local function. The local function returns a value...