-
-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy pathdebug.h
executable file
·67 lines (54 loc) · 2.67 KB
/
debug.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) |
+------------------------------------------------------------------------+
| This source file is subject to the New BSD License that is bundled |
| with this package in the file docs/LICENSE.txt. |
| |
| If you did not receive a copy of the license and are unable to |
| obtain it through the world-wide-web, please send an email |
| to license@phalconphp.com so we can send you a copy immediately. |
+------------------------------------------------------------------------+
| Authors: Andres Gutierrez <andres@phalconphp.com> |
| Eduar Carvajal <eduar@phalconphp.com> |
+------------------------------------------------------------------------+
*/
#ifndef PHALCON_RELEASE
#define PHV(v) phalcon_vdump(v)
#define PHPR(v) phalcon_print_r(v)
typedef struct _phalcon_debug_entry {
struct _phalcon_debug_entry *prev;
struct _phalcon_debug_entry *next;
char *class_name;
char *method_name;
int lineno;
} phalcon_debug_entry;
extern int phalcon_start_debug();
extern int phalcon_stop_debug();
extern int phalcon_print_r(zval *userval TSRMLS_DC);
extern int phalcon_vdump(zval *uservar TSRMLS_DC);
extern int phalcon_debug_assign(char *name, zval *value TSRMLS_DC);
extern int phalcon_vpdump(const zval **uservar TSRMLS_DC);
extern int phalcon_dump_ce(zend_class_entry *ce TSRMLS_DC);
extern int phalcon_class_debug(zval *val TSRMLS_DC);
extern int phalcon_debug_backtrace_internal();
extern int phalcon_debug_str(char *what, char *message);
extern int phalcon_debug_long(char *what, uint vlong);
extern int phalcon_debug_screen(char *message);
extern int phalcon_step_over(char *message);
extern int phalcon_step_into(char *message);
extern int phalcon_step_out(char *message);
extern int phalcon_step_into_entry(char *class_name, char *method_name, int lineno);
extern int phalcon_step_out_entry();
extern int phalcon_debug_method_call(zval *obj, char *method_name TSRMLS_DC);
extern int phalcon_debug_vdump(char *preffix, zval *value TSRMLS_DC);
extern int phalcon_debug_param(zval *param TSRMLS_DC);
extern int phalcon_error_space();
extern int phalcon_debug_space();
extern FILE *phalcon_log;
extern int phalcon_debug_trace;
extern phalcon_debug_entry *start;
extern phalcon_debug_entry *active;
#endif