add source export functionality, only files working, buggy source

This commit is contained in:
krakjoe 2013-11-25 17:41:09 +00:00
parent 3d6a4cbc63
commit a947c890a0
4 changed files with 60 additions and 4 deletions

View file

@ -505,11 +505,15 @@ PHPDBG_HELP(source) /* {{{ */
{
phpdbg_help_header();
phpdbg_writeln("Sourcing a phpdbginit during your debugging session might save some time");
phpdbg_writeln("The source command can also be used to export breakpoints to a phpdbginit file");
phpdbg_writeln(EMPTY);
phpdbg_notice("Examples");
phpdbg_writeln("\t%ssource /my/phpdbginit", PROMPT);
phpdbg_writeln("\t%s. /my/phpdbginit", PROMPT);
phpdbg_writeln("\tWill execute the init file at /my/phpdbginit");
phpdbg_writeln("\t%ssource /my/init", PROMPT);
phpdbg_writeln("\t%s. /my/init", PROMPT);
phpdbg_writeln("\tWill execute the phpdbginit file at /my/init");
phpdbg_writeln("\t%ssource export /my/init", PROMPT);
phpdbg_writeln("\t%s. export /my/init", PROMPT);
phpdbg_writeln("\tWill export breakpoints to /my/init in phpdbginit file format");
phpdbg_help_footer();
return SUCCESS;
} /* }}} */