You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.9 KiB

13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2013 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.01 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.php.net/license/3_01.txt |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Authors: Felipe Pena <felipe@php.net> |
  16. | Authors: Joe Watkins <joe.watkins@live.co.uk> |
  17. +----------------------------------------------------------------------+
  18. */
  19. #ifndef PHPDBG_HELP_H
  20. #define PHPDBG_HELP_H
  21. #include "phpdbg_prompt.h"
  22. /**
  23. * Command Declarators
  24. */
  25. #define PHPDBG_HELP_D(name, tip) \
  26. {PHPDBG_STRL(#name), tip, sizeof(tip)-1, phpdbg_do_help_##name}
  27. #define PHPDBG_HELP(name) \
  28. int phpdbg_do_help_##name(const char *expr, size_t expr_len TSRMLS_DC)
  29. /**
  30. * Helper Forward Declarations
  31. */
  32. PHPDBG_HELP(exec);
  33. PHPDBG_HELP(compile);
  34. PHPDBG_HELP(step);
  35. PHPDBG_HELP(next);
  36. PHPDBG_HELP(run);
  37. PHPDBG_HELP(eval);
  38. PHPDBG_HELP(print);
  39. PHPDBG_HELP(break);
  40. PHPDBG_HELP(clean);
  41. PHPDBG_HELP(clear);
  42. PHPDBG_HELP(back);
  43. PHPDBG_HELP(quiet);
  44. /**
  45. * Commands
  46. */
  47. static const phpdbg_command_t phpdbg_help_commands[] = {
  48. PHPDBG_HELP_D(exec, "the execution context should be a valid phpdbg path"),
  49. PHPDBG_HELP_D(compile, "pre-compilation allows inspection of code before execution"),
  50. PHPDBG_HELP_D(step, "stepping through execution allows inspection of the opline after every opcode"),
  51. PHPDBG_HELP_D(next, "continue executing while stepping or after breaking"),
  52. PHPDBG_HELP_D(run, "execution inside the phpdbg vm allows detailed inspection and debugging"),
  53. PHPDBG_HELP_D(eval, "access to eval() allows you to affect the environment during execution"),
  54. PHPDBG_HELP_D(print, "printing allows inspection of the execution environment"),
  55. PHPDBG_HELP_D(break, "breakpoints allow execution interruption"),
  56. PHPDBG_HELP_D(clean, "resetting the environment is useful while debugging and recompiling"),
  57. PHPDBG_HELP_D(clear, "clearing breakpoints allows you to run code without interruption"),
  58. PHPDBG_HELP_D(back, "show debug backtrace information during execution"),
  59. PHPDBG_HELP_D(quiet, "be quiet during execution"),
  60. {NULL, 0, 0}
  61. };
  62. #endif /* PHPDBG_HELP_H */