Debugging

PHP Debugger allows you to debug any fragment of code in your project. During the debugging process, you can control all available data and variables in executable scripts. Practically, debugging process means the following workflow:

  1. Open a File or Project

  2. For project specify the Project URL for debugging and Project Home URL.

  3. Set a breakpoint at each line where PHP source code execution should pause.

  4. Start a debugging session pressing F5 or using Debug | Debug main menu item, it opens as a next page in your default browser.

    [Note]Note

    To start debugging from project home URL press Shift + F8 or select Debug | Debug Project Home URL main menu item.

  5. Perform actions to execute a script (input some data, click on links, or buttons).

  6. When the debugger reaches the breakpoint, it will open the CodeLobster IDE window.

  7. When a line with a breakpoint is reached, execute the script one line after another by pressing F10 (Debug | Step over) and F11 (Debug | Step into). Monitor the state of the application in the debugger windows.

    You can inspect any available data, variables, and control process of execution using debugging tools.

  8. Close the debugging session.

URL debugging

This procedure describes how to debug a URL on a server to which you have access. To start URL debugging:

  1. Move to Debug | Debug URL or press F8

  2. In the appearing Debug URL dialog enter the URL of the first page that should be debugged.