This part of the manual describes the command line debugger. To use the Integrated Step Debugger in the Roadsend Studio IDE, see Debugging Your Project.
To begin a debugging session, call pcc with the -g
argument,
along with the file you wish to debug (the main file of your
project).
$ pcc -g main.php
You will be given the debugger prompt. At this point, your program is
in Pause mode and has not yet been executed. Use the h
command
to get a list of debugging commands available:
(pdb) h Most commands can be abbreviated. When single-stepping, hitting enter is the same as the command 's', or 'step'. Commands available: help, quit, step, next, continue, reset, backtrace, list, $<var>, break <function>, clear <function>, clearall, locals.
Pressing enter at the prompt will execute the last command issued. You can press Ctrl-Break while the program is running to pause the program at its current execution point.