{
phpdbg_writeln("You can enable and disable stepping at any phpdbg prompt during execution");
phpdbg_writeln(EMPTY);
- phpdbg_writeln("For example:");
+ phpdbg_writeln("Examples:");
phpdbg_writeln("\t%sstepping 1", PROMPT);
phpdbg_writeln("Will enable stepping");
phpdbg_writeln(EMPTY);
PHPDBG_HELP(print) /* {{{ */
{
phpdbg_writeln("By default, print will show information about the current execution environment");
+ phpdbg_writeln("Other printing commands give access to address, file and line information");
+ phpdbg_writeln(EMPTY);
+ phpdbg_writeln("Examples:");
+ phpdbg_writeln("\t%sprint class \\my\\class", PROMPT);
+ phpdbg_writeln("Will print information about \\my\\class, including the instructions for every method and their address");
+ phpdbg_writeln("\t%sprint func .getSomething", PROMPT);
+ phpdbg_writeln("Will print the instructions for the method getSomething in the currently active scope");
+ phpdbg_writeln("\t%sprint opline", PROMPT);
+ phpdbg_writeln("Will print the instruction for the current opline");
+ phpdbg_writeln(EMPTY);
phpdbg_writeln("Specific printers loaded are show below:");
phpdbg_notice("Commands");
{
{
phpdbg_writeln("Setting a breakpoint stops execution at a specific stage.");
phpdbg_writeln(EMPTY);
- phpdbg_writeln("For example:");
+ phpdbg_writeln("Examples:");
phpdbg_writeln("\t%sbreak test.php:1", PROMPT);
phpdbg_writeln("Will break execution on line 1 of test.php");
phpdbg_writeln("\t%sbreak my_function", PROMPT);
{
phpdbg_writeln("Setting quietness on will stop the OPLINE output during execution");
phpdbg_writeln(EMPTY);
- phpdbg_writeln("For example:");
+ phpdbg_writeln("Examples:");
phpdbg_writeln("\t%squiet 1", PROMPT);
phpdbg_writeln("Will silence OPLINE output, while");
phpdbg_writeln("\t%squiet 0", PROMPT);
phpdbg_writeln("Will enable OPLINE output again");
+ phpdbg_writeln(EMPTY);
+ phpdbg_writeln("Quietness is disabled while stepping through execution automatically");
return SUCCESS;
} /* }}} */
{
phpdbg_writeln("The backtrace is gathered with the default debug_backtrace functionality.");
phpdbg_writeln(EMPTY);
- phpdbg_writeln("You can set the limit on the trace, for example:");
+ phpdbg_writeln("Examples:");
+ phpdbg_writeln("You can set the limit on the trace");
phpdbg_writeln("\t%sback 5", PROMPT);
phpdbg_writeln("Will limit the number of frames to 5, the default is no limit");
return SUCCESS;
{
phpdbg_writeln("The list command displays N line from current context file.");
phpdbg_writeln(EMPTY);
+ phpdbg_writeln("Examples:");
phpdbg_writeln("\t%slist 2", PROMPT);
phpdbg_writeln("Will print next 2 lines from the current file");
phpdbg_writeln("\t%slist func", PROMPT);