Skip to content

Commit 1b61529

Browse files
committed
tidy example
1 parent 057f11c commit 1b61529

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

.phpdbginit

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
#######################################################
1+
##############################################
22
# .phpdbginit
3-
#######################################################
4-
# By default phpdbg will look for .phpdbginit
5-
# in the current working directory.
6-
# This default can be overridden with the -i option
7-
#
8-
# The commands contained in an init file are executed
9-
# and when the environment is cleaned (clean|X)
10-
#
11-
# Q
12-
# b f my_function
13-
# b m my::method
14-
# e my.php
15-
# c
16-
php:
17-
18-
end;
3+
#
4+
# Lines starting with # are ignored
5+
# Code must start and end with <: and :> respectively
6+
##############################################
7+
# Place initialization commands one per line
8+
##############################################
9+
# exec sapi/phpdbg/test.php
10+
11+
##############################################
12+
# Embedding code in .phpdbginit
13+
##############################################
14+
<:
15+
/*
16+
* This embedded PHP is executed at init time
17+
*/
18+
19+
/* phpdbg_break(PHPDBG_METHOD, "phpdbg::method"); */
20+
/* phpdbg_break(PHPDBG_FUNC, "my_global_function"); */
21+
/* phpdbg_break(PHPDBG_FILE, "/path/to/file.php:10"); */
22+
:>
23+
24+
##############################################
25+
# Now carry on initializing phpdbg ...
26+
##############################################

0 commit comments

Comments
 (0)