php-src/phpdbg_help.h

74 lines
3.1 KiB
C
Raw Normal View History

/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2013 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Felipe Pena <felipe@php.net> |
| Authors: Joe Watkins <joe.watkins@live.co.uk> |
+----------------------------------------------------------------------+
*/
#ifndef PHPDBG_HELP_H
#define PHPDBG_HELP_H
2013-11-11 23:40:03 +00:00
#include "TSRM.h"
#include "phpdbg_prompt.h"
/**
* Command Declarators
*/
#define PHPDBG_HELP_D(name, tip) \
2013-11-13 17:35:51 +00:00
{PHPDBG_STRL(#name), tip, sizeof(tip)-1, 0, phpdbg_do_help_##name}
#define PHPDBG_HELP(name) \
2013-11-10 16:12:43 +00:00
int phpdbg_do_help_##name(const char *expr, size_t expr_len TSRMLS_DC)
/**
* Helper Forward Declarations
*/
2013-11-10 11:03:29 +00:00
PHPDBG_HELP(exec);
2013-11-10 11:35:59 +00:00
PHPDBG_HELP(compile);
2013-11-10 14:28:14 +00:00
PHPDBG_HELP(step);
PHPDBG_HELP(next);
2013-11-10 13:06:57 +00:00
PHPDBG_HELP(run);
2013-11-10 14:43:46 +00:00
PHPDBG_HELP(eval);
PHPDBG_HELP(print);
2013-11-10 11:48:01 +00:00
PHPDBG_HELP(break);
PHPDBG_HELP(clean);
2013-11-11 13:31:41 +00:00
PHPDBG_HELP(clear);
2013-11-10 15:54:19 +00:00
PHPDBG_HELP(back);
2013-11-10 21:23:18 +00:00
PHPDBG_HELP(quiet);
2013-11-11 23:40:03 +00:00
PHPDBG_HELP(list);
PHPDBG_HELP(oplog);
/**
* Commands
*/
static const phpdbg_command_t phpdbg_help_commands[] = {
2013-11-14 09:18:06 +00:00
PHPDBG_HELP_D(exec, "the execution context should be a valid path"),
2013-11-10 16:12:43 +00:00
PHPDBG_HELP_D(compile, "pre-compilation allows inspection of code before execution"),
2013-11-14 09:18:06 +00:00
PHPDBG_HELP_D(step, "stepping through execution allows inspection of the opline as it is executed"),
2013-11-10 21:09:35 +00:00
PHPDBG_HELP_D(next, "continue executing while stepping or after breaking"),
2013-11-10 16:12:43 +00:00
PHPDBG_HELP_D(run, "execution inside the phpdbg vm allows detailed inspection and debugging"),
PHPDBG_HELP_D(eval, "access to eval() allows you to affect the environment during execution"),
PHPDBG_HELP_D(print, "printing allows inspection of the execution environment"),
PHPDBG_HELP_D(break, "breakpoints allow execution interruption"),
PHPDBG_HELP_D(clean, "resetting the environment is useful while debugging and recompiling"),
2013-11-11 13:31:41 +00:00
PHPDBG_HELP_D(clear, "clearing breakpoints allows you to run code without interruption"),
2013-11-10 16:12:43 +00:00
PHPDBG_HELP_D(back, "show debug backtrace information during execution"),
2013-11-10 21:23:18 +00:00
PHPDBG_HELP_D(quiet, "be quiet during execution"),
2013-11-12 03:02:42 +00:00
PHPDBG_HELP_D(list, "listing code gives you quick access to code while executing"),
PHPDBG_HELP_D(oplog, "sets a file for, or disables oplog"),
2013-11-10 16:12:43 +00:00
{NULL, 0, 0}
};
#endif /* PHPDBG_HELP_H */