com php-src: tidy example: .phpdbginit
| From: | Bob Weinand | Date: | Fri, 15 Nov 2013 15:59:54 +0000 |
| Subject: | com php-src: tidy example: .phpdbginit | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74937@lists.php.net to get a copy of this message | ||
Commit: 1b615298bfa368748f166c62f4bb89d695f0d343
Author: krakjoe <joe.watkins@live.co.uk> Fri, 15 Nov 2013 15:59:54 +0000
Parents: 057f11c4cae2ead7166a60de0a989789a9edd453
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1b615298bfa368748f166c62f4bb89d695f0d343
Log:
tidy example
Changed paths:
M .phpdbginit
Diff:
diff --git a/.phpdbginit b/.phpdbginit
index 3e44053..5de88c7 100644
--- a/.phpdbginit
+++ b/.phpdbginit
@@ -1,18 +1,26 @@
-#######################################################
+##############################################
# .phpdbginit
-#######################################################
-# By default phpdbg will look for .phpdbginit
-# in the current working directory.
-# This default can be overridden with the -i option
-#
-# The commands contained in an init file are executed
-# and when the environment is cleaned (clean|X)
-#
-# Q
-# b f my_function
-# b m my::method
-# e my.php
-# c
-php:
-
-end;
+#
+# Lines starting with # are ignored
+# Code must start and end with <: and :> respectively
+##############################################
+# Place initialization commands one per line
+##############################################
+# exec sapi/phpdbg/test.php
+
+##############################################
+# Embedding code in .phpdbginit
+##############################################
+<:
+/*
+* This embedded PHP is executed at init time
+*/
+
+/* phpdbg_break(PHPDBG_METHOD, "phpdbg::method"); */
+/* phpdbg_break(PHPDBG_FUNC, "my_global_function"); */
+/* phpdbg_break(PHPDBG_FILE, "/path/to/file.php:10"); */
+:>
+
+##############################################
+# Now carry on initializing phpdbg ...
+##############################################