php-src/phpdbg_help.h

65 lines
2.7 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
#include "phpdbg_prompt.h"
/**
* Command Declarators
*/
#define PHPDBG_HELP_D(name, tip) \
2013-11-10 16:12:43 +00:00
{PHPDBG_STRL(#name), tip, sizeof(tip)-1, 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);
2013-11-10 15:54:19 +00:00
PHPDBG_HELP(back);
2013-11-10 21:23:18 +00:00
PHPDBG_HELP(quiet);
/**
* Commands
*/
static const phpdbg_command_t phpdbg_help_commands[] = {
2013-11-10 16:12:43 +00:00
PHPDBG_HELP_D(exec, "the execution context should be a valid phpdbg path"),
PHPDBG_HELP_D(compile, "pre-compilation allows inspection of code before execution"),
PHPDBG_HELP_D(step, "stepping through execution allows inspection of the opline after every opcode"),
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(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-10 16:12:43 +00:00
{NULL, 0, 0}
};
#endif /* PHPDBG_HELP_H */