php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
phpdbg_break.c
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Authors: Felipe Pena <felipe@php.net> |
14 | Authors: Joe Watkins <joe.watkins@live.co.uk> |
15 | Authors: Bob Weinand <bwoebi@php.net> |
16 +----------------------------------------------------------------------+
17*/
18
19#include "phpdbg.h"
20#include "phpdbg_print.h"
21#include "phpdbg_utils.h"
22#include "phpdbg_break.h"
23#include "phpdbg_bp.h"
24#include "phpdbg_prompt.h"
25
27
28#define PHPDBG_BREAK_COMMAND_D(f, h, a, m, l, s, flags) \
29 PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[9], flags)
30
35 PHPDBG_BREAK_COMMAND_D(at, "specify breakpoint by location and condition", '@', break_at, NULL, "*c", 0),
36 PHPDBG_BREAK_COMMAND_D(del, "delete breakpoint by identifier number", '~', break_del, NULL, "n", 0),
38};
39
40PHPDBG_BREAK(at) /* {{{ */
41{
43
44 return SUCCESS;
45} /* }}} */
46
47PHPDBG_BREAK(del) /* {{{ */
48{
49 phpdbg_delete_breakpoint(param->num);
50
51 return SUCCESS;
52} /* }}} */
Definition test.php:8
#define NULL
Definition gdcache.h:45
#define SUCCESS
Definition hash_sha3.c:261
PHPDBG_API void phpdbg_set_breakpoint_at(const phpdbg_param_t *param)
Definition phpdbg_bp.c:915
PHPDBG_API void phpdbg_delete_breakpoint(zend_ulong num)
Definition phpdbg_bp.c:1190
#define PHPDBG_BREAK_COMMAND_D(f, h, a, m, l, s, flags)
const phpdbg_command_t phpdbg_break_commands[]
#define PHPDBG_BREAK(name)
#define PHPDBG_END_COMMAND
Definition phpdbg_cmd.h:171
struct _phpdbg_command_t phpdbg_command_t
Definition phpdbg_cmd.h:88
#define ZEND_EXTERN_MODULE_GLOBALS(module_name)
Definition zend_API.h:270