]> granicus.if.org Git - php/commitdiff
tidy example
authorkrakjoe <joe.watkins@live.co.uk>
Fri, 15 Nov 2013 15:59:54 +0000 (15:59 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Fri, 15 Nov 2013 15:59:54 +0000 (15:59 +0000)
.phpdbginit

index 3e44053b20a7f3fb1918ad6fe13429f1fe631abd..5de88c7ba00b09115a84d682116e7c3e8dda98bd 100644 (file)
@@ -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 ...
+##############################################