cvs: presentations / xdebug-phpworks04.xml /slides/perf ezp.css /slides/xdebug about.xml ccoverage1.xml ccoverage2.xml ccoverage3.xml
dbgp-breakpoint-types.xml dbgp-breakpoints.xml dbgp-common.xml dbgp-context.xml dbgp-continuation.xml dbgp-features.xml dbgp-properties.xml
dbgp-stack.xml dbgp-types.xml dbgp.xml debugger-activation.xml functiontrace-computerized.xml gathering1.xml gathering2.xml hooks1.xml interfaces.xml
profiling.xml profiling2.xml survey.xml
| From: | Derick Rethans | Date: | Thu, 02 Sep 2004 06:56:03 +0000 |
| Subject: | cvs: presentations / xdebug-phpworks04.xml /slides/perf ezp.css /slides/xdebug about.xml ccoverage1.xml ccoverage2.xml ccoverage3.xml dbgp-breakpoint-types.xml dbgp-breakpoints.xml dbgp-common.xml dbgp-context.xml dbgp-continuation.xml dbgp-features.xml dbgp-properties.xml dbgp-stack.xml dbgp-types.xml dbgp.xml debugger-activation.xml functiontrace-computerized.xml gathering1.xml gathering2.xml hooks1.xml interfaces.xml profiling.xml profiling2.xml survey.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1051@lists.php.net to get a copy of this message | ||
derick Thu Sep 2 02:56:03 2004 EDT
Added files:
/presentations xdebug-phpworks04.xml
/presentations/slides/xdebug dbgp-breakpoint-types.xml
dbgp-breakpoints.xml dbgp-common.xml
dbgp-context.xml dbgp-continuation.xml
dbgp-features.xml dbgp-properties.xml
dbgp-stack.xml dbgp-types.xml
debugger-activation.xml
Modified files:
/presentations/slides/perf ezp.css
/presentations/slides/xdebug about.xml ccoverage1.xml
ccoverage2.xml ccoverage3.xml dbgp.xml
functiontrace-computerized.xml
gathering1.xml gathering2.xml
hooks1.xml interfaces.xml
profiling.xml profiling2.xml
survey.xml
Log:
- Added Xdebug presentation for php|works
http://cvs.php.net/diff.php/presentations/slides/perf/ezp.css?r1=1.5&r2=1.6&ty=u Index: presentations/slides/perf/ezp.css diff -u presentations/slides/perf/ezp.css:1.5 presentations/slides/perf/ezp.css:1.6 --- presentations/slides/perf/ezp.css:1.5 Tue Aug 31 02:49:36 2004 +++ presentations/slides/perf/ezp.css Thu Sep 2 02:56:03 2004 @@ -22,14 +22,21 @@ font-family: verdana, tahoma, arial, helvetica, sans-serif; z-index: 99; } -div.navbar_title, div.navbar_title a { -font-size: 32px; -color: #698fe5; -text-decoration: none; -text-align: left; -font-weight: bold; -margin-top: 20px; +div.navbar_title, div.navbar_title a, div.subtitle { + font-size: 32px; + color: #698fe5; + text-decoration: none; + text-align: left; + font-weight: bold; + margin-top: 20px; +} +div.subtitle { + margin-top: 5px; + font-size: 24; + font-weight: normal; + font-style: italic; } + div.navbar_nr a { font-size: 16px; color: #77a; @@ -51,16 +58,22 @@ list-style: circle; font-size: 20pt; margin-left: 40px; + margin-top: -15px; } li.pres_bullet { -font-size: 24pt; +font-size: 28pt; +margin-right: 40px; } -div.blurb { +div.small_blurb { font-size: 24px; } +div.blurb { + font-size: 32px; +} + div.large_blurb { font-size: 32px; } @@ -82,10 +95,17 @@ font-size: 12px; } +div.code_medium { + background: #ccc; +} +div.code_medium code, div.code_medium pre { + font-size: 20px; +} + div.code_large { background: #ccc; } -div.code_large code { +div.code_large code, div.code_large pre { font-size: 24px; } </style> http://cvs.php.net/diff.php/presentations/slides/xdebug/about.xml?r1=1.3&r2=1.4&ty=u Index: presentations/slides/xdebug/about.xml diff -u presentations/slides/xdebug/about.xml:1.3 presentations/slides/xdebug/about.xml:1.4 --- presentations/slides/xdebug/about.xml:1.3 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/about.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Xdebug</title> + <subtitle>Summary</subtitle> <break lines="2"/> <list> <bullet>Protects against infinite recursion</bullet> http://cvs.php.net/diff.php/presentations/slides/xdebug/ccoverage1.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/xdebug/ccoverage1.xml diff -u presentations/slides/xdebug/ccoverage1.xml:1.1 presentations/slides/xdebug/ccoverage1.xml:1.2 --- presentations/slides/xdebug/ccoverage1.xml:1.1 Tue Aug 31 02:49:36 2004 +++ presentations/slides/xdebug/ccoverage1.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Code Coverage - Testfile</title> + <title>Code Coverage</title> + <subtitle>Function To Test and Test Driver</subtitle> <blurb>Function to test (bigassfunction.php):</blurb> <example><![CDATA[<?php http://cvs.php.net/diff.php/presentations/slides/xdebug/ccoverage2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/xdebug/ccoverage2.xml diff -u presentations/slides/xdebug/ccoverage2.xml:1.1 presentations/slides/xdebug/ccoverage2.xml:1.2 --- presentations/slides/xdebug/ccoverage2.xml:1.1 Tue Aug 31 02:49:36 2004 +++ presentations/slides/xdebug/ccoverage2.xml Thu Sep 2 02:56:03 2004 @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Code Coverage - Test Application</title> + <title>Code Coverage</title> + <subtitle>The Testing Application</subtitle> - <blurb>Test program:</blurb> <example><![CDATA[<?php echo "Output:\n\n"; xdebug_start_code_coverage(); http://cvs.php.net/diff.php/presentations/slides/xdebug/ccoverage3.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/xdebug/ccoverage3.xml diff -u presentations/slides/xdebug/ccoverage3.xml:1.1 presentations/slides/xdebug/ccoverage3.xml:1.2 --- presentations/slides/xdebug/ccoverage3.xml:1.1 Tue Aug 31 02:49:36 2004 +++ presentations/slides/xdebug/ccoverage3.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Code Coverage - Result</title> + <title>Code Coverage</title> + <subtitle>The Highlighted Source as Result</subtitle> <image align="right" filename="ccoverage-end.png"/> <blurb> http://cvs.php.net/diff.php/presentations/slides/xdebug/dbgp.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/xdebug/dbgp.xml diff -u presentations/slides/xdebug/dbgp.xml:1.2 presentations/slides/xdebug/dbgp.xml:1.3 --- presentations/slides/xdebug/dbgp.xml:1.2 Thu Jun 17 08:12:03 2004 +++ presentations/slides/xdebug/dbgp.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp mode</title> + <subtitle>DeBuGger Protocol</subtitle> <list fontsize="4em"> <bullet>Input commands as "command line parameters"</bullet> @@ -8,7 +9,7 @@ <bullet>Output data as *documented* XML:</bullet> </list> <break /> - <example><![CDATA[data_length + <example type="xml" class="code_medium"><![CDATA[data_length [NULL] <response command="command_name" transaction_id="transaction_id"/> [NULL]]]></example> http://cvs.php.net/diff.php/presentations/slides/xdebug/functiontrace-computerized.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/xdebug/functiontrace-computerized.xml diff -u presentations/slides/xdebug/functiontrace-computerized.xml:1.1 presentations/slides/xdebug/functiontrace-computerized.xml:1.2 --- presentations/slides/xdebug/functiontrace-computerized.xml:1.1 Tue Aug 31 02:49:36 2004 +++ presentations/slides/xdebug/functiontrace-computerized.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Execution trace to file (computerized)</title> + <title>Execution trace to file</title> + <subtitle>Automatic readable format</subtitle> <image filename="tracefile-computerized.png"/> <break/> <example class="code_large" fontsize="1.7em">xdebug.auto_trace=1 ; enable tracing http://cvs.php.net/diff.php/presentations/slides/xdebug/gathering1.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/xdebug/gathering1.xml diff -u presentations/slides/xdebug/gathering1.xml:1.2 presentations/slides/xdebug/gathering1.xml:1.3 --- presentations/slides/xdebug/gathering1.xml:1.2 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/gathering1.xml Thu Sep 2 02:56:03 2004 @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Gathering debug data 1</title> + <title>Gathering debug data</title> + <subtitle>Functions and parameters</subtitle> + + <break lines="2"/> - <blurb> </blurb> <list fontsize="5em"> <bullet>Functions and classnames</bullet> </list> http://cvs.php.net/diff.php/presentations/slides/xdebug/gathering2.xml?r1=1.3&r2=1.4&ty=u Index: presentations/slides/xdebug/gathering2.xml diff -u presentations/slides/xdebug/gathering2.xml:1.3 presentations/slides/xdebug/gathering2.xml:1.4 --- presentations/slides/xdebug/gathering2.xml:1.3 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/gathering2.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Gathering debug data 2</title> + <title>Gathering debug data</title> + <subtitle>Memory and Time</subtitle> <break lines="2"/> http://cvs.php.net/diff.php/presentations/slides/xdebug/hooks1.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/xdebug/hooks1.xml diff -u presentations/slides/xdebug/hooks1.xml:1.2 presentations/slides/xdebug/hooks1.xml:1.3 --- presentations/slides/xdebug/hooks1.xml:1.2 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/hooks1.xml Thu Sep 2 02:56:03 2004 @@ -6,11 +6,11 @@ <list fontsize="5em"> <bullet>Xdebug hooks into these events:</bullet> </list> - <image align="left" marginright="2em" filename="hooks.jpg"/> <list class="level2" fontsize="4em" marginleft="1em"> <bullet>Executing user defined function</bullet> <bullet>Executing internal function</bullet> <bullet>Compiling a file</bullet> <bullet>Executing a statement</bullet> </list> + <image align="right" marginright="2em" filename="hooks.jpg"/> </slide> http://cvs.php.net/diff.php/presentations/slides/xdebug/interfaces.xml?r1=1.4&r2=1.5&ty=u Index: presentations/slides/xdebug/interfaces.xml diff -u presentations/slides/xdebug/interfaces.xml:1.4 presentations/slides/xdebug/interfaces.xml:1.5 --- presentations/slides/xdebug/interfaces.xml:1.4 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/interfaces.xml Thu Sep 2 02:56:03 2004 @@ -6,8 +6,7 @@ <bullet>PHP 3 debugger mode</bullet> </list> <list class="level2" fontsize="3.5em" marginleft="4em"> - <bullet>Port of the old remote debug dump</bullet> - <bullet marginleft="5em" type="none">interface for PHP 3</bullet> + <bullet>Port of the old remote debug dump interface for PHP 3</bullet> <bullet>Available in Xdebug 1.x and 2.x</bullet> </list> http://cvs.php.net/diff.php/presentations/slides/xdebug/profiling.xml?r1=1.3&r2=1.4&ty=u Index: presentations/slides/xdebug/profiling.xml diff -u presentations/slides/xdebug/profiling.xml:1.3 presentations/slides/xdebug/profiling.xml:1.4 --- presentations/slides/xdebug/profiling.xml:1.3 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/profiling.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Profiling</title> + <subtitle>KCacheGrind's Flat Profile and Call List</subtitle> <image filename="pg1.png" align="right"/> <example class="code_large">xdebug.profiler_enable=1 ; enable profiler http://cvs.php.net/diff.php/presentations/slides/xdebug/profiling2.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/xdebug/profiling2.xml diff -u presentations/slides/xdebug/profiling2.xml:1.2 presentations/slides/xdebug/profiling2.xml:1.3 --- presentations/slides/xdebug/profiling2.xml:1.2 Thu Jun 17 08:12:03 2004 +++ presentations/slides/xdebug/profiling2.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Profiling (2)</title> + <title>Profiling</title> + <subtitle>KCacheGrind's Call Graph and Source Annotations</subtitle> <image filename="pg4.png" marginright="2em" align="right"/> <break/> http://cvs.php.net/diff.php/presentations/slides/xdebug/survey.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/xdebug/survey.xml diff -u presentations/slides/xdebug/survey.xml:1.1 presentations/slides/xdebug/survey.xml:1.2 --- presentations/slides/xdebug/survey.xml:1.1 Tue Aug 31 02:49:36 2004 +++ presentations/slides/xdebug/survey.xml Thu Sep 2 02:56:03 2004 @@ -4,11 +4,10 @@ <blurb class="large_blurb">Who...</blurb> <list> - <bullet effect="hide">did never hear about |ff0000|PHP|?</bullet> - <bullet effect="hide">wrote PHP applications > |00ff00|10k| LOC?</bullet> - <bullet effect="hide">wrote PHP applications > |ff8000|50k| LOC?</bullet> - <bullet effect="hide">knows the answer of the meaning of life, the universe and everything?</bullet> - <bullet effect="hide">wrote PHP applications > |ff0000|100k| LOC?</bullet> + <bullet effect="hide">did never hear about |698fe5|PHP|?</bullet> + <bullet effect="hide">used PHP in a web application?</bullet> + <bullet effect="hide">wrote PHP applications > |698fe5|10k| LOC?</bullet> + <bullet effect="hide">wrote PHP applications > |698fe5|100k| LOC?</bullet> <bullet effect="hide">uses Xdebug?</bullet> <bullet effect="hide">is bored of these questions?</bullet> </list> http://cvs.php.net/co.php/presentations/xdebug-phpworks04.xml?r=1.1&p=1 Index: presentations/xdebug-phpworks04.xml +++ presentations/xdebug-phpworks04.xml <?xml version="1.0" encoding="iso-8859-1"?> <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#f1fbff" logo1="" stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>Debugging</topic> <title>Efficient debugging with Xdebug</title> <event>php|works</event> <location>Toronto, Canada</location> <date>September 22th, 2004</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <url>http://pres.derickrethans.nl/xdebug-phpworks04</url> <slide>slides/xdebug/title.xml</slide> <!-- INTRODUCTION --> <slide>slides/xdebug/questions.xml</slide> <slide>slides/xdebug/how-started.xml</slide> <!-- BASIC STUFF --> <slide>slides/xdebug/infinite.xml</slide> <slide>slides/xdebug/vardump.xml</slide> <slide>slides/xdebug/stacktrace.xml</slide> <slide>slides/xdebug/local-vars2.xml</slide> <!-- SUPER GLOBALS --> <slide>slides/xdebug/superglobals.xml</slide> <!-- TRACING --> <slide>slides/xdebug/functiontrace-file.xml</slide> <slide>slides/xdebug/vim.xml</slide> <slide>slides/xdebug/functiontrace-computerized.xml</slide> <slide>slides/xdebug/xgui.xml</slide> <!-- PROFILING --> <slide>slides/xdebug/profiling.xml</slide> <slide>slides/xdebug/profiling2.xml</slide> <!-- CODE COVERAGE --> <slide>slides/xdebug/ccoverage1.xml</slide> <slide>slides/xdebug/ccoverage2.xml</slide> <slide>slides/xdebug/ccoverage3.xml</slide> <!-- THEORY --> <slide>slides/xdebug/gathering-data.xml</slide> <slide>slides/xdebug/gathering1.xml</slide> <slide>slides/xdebug/gathering2.xml</slide> <slide>slides/xdebug/hooks1.xml</slide> <!-- REMOTE INTERFACES --> <slide>slides/xdebug/interfaces.xml</slide> <slide>slides/xdebug/debugger-activation.xml</slide> <slide>slides/xdebug/gdb.xml</slide> <slide>slides/xdebug/gdb-xml.xml</slide> <slide>slides/xdebug/dbgp.xml</slide> <!-- DBGp COMMAND SET --> <slide>slides/xdebug/dbgp-common.xml</slide> <!-- -i, encoding, __, init --> <slide>slides/xdebug/dbgp-features.xml</slide> <!-- feature_get, feature_set --> <slide>slides/xdebug/dbgp-continuation.xml</slide> <!-- run, step_*, stop, detach --> <slide>slides/xdebug/dbgp-breakpoints.xml</slide> <!-- breakpoint_* --> <slide>slides/xdebug/dbgp-breakpoint-types.xml</slide> <!-- breakpoint_* --> <slide>slides/xdebug/dbgp-stack.xml</slide> <!-- stack_depth, stack_get --> <slide>slides/xdebug/dbgp-context.xml</slide> <!-- context_names, context_get --> <slide>slides/xdebug/dbgp-types.xml</slide> <!-- typemap_get, property_* --> <slide>slides/xdebug/dbgp-properties.xml</slide> <!-- typemap_get, property_* --> <!-- KOMODO SCREENSHOTS --> <!-- XDCX? --> <!-- END --> <slide>slides/xdebug/about.xml</slide> <slide>slides/xdebug/resources.xml</slide> </presentation> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-breakpoint-types.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-breakpoint-types.xml +++ presentations/slides/xdebug/dbgp-breakpoint-types.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Breakpoint Types</title> <subtitle>Section 7.6</subtitle> <blurb>Option explanation:</blurb> <break/> <example><![CDATA[-a class name -f file name -m function name -n line number -x exception -- expression]]></example> <break/> <blurb>Different breakpoint types:</blurb> <blurb>- ~line~: on a file/line combination (req: *-f* and *-n*)</blurb> <blurb>- ~call~: on function entrance (req: *-m*; opt: *-a*)</blurb> <blurb>- ~return~: on function exit (req: *-m*; opt: *-a*)</blurb> <blurb>- ~exception~: on exception of given name (req: *-x*)</blurb> <blurb>- ~conditional~: when condition is met (req: *--* and *-f*; opt: *-n*)</blurb> <break lines="2"/> <blurb>Extra options:</blurb> <break/> <example><![CDATA[-o hit condition (>=, == or %) -g hit value]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-breakpoints.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-breakpoints.xml +++ presentations/slides/xdebug/dbgp-breakpoints.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Breakpoints</title> <subtitle>Section 7.6</subtitle> <blurb>Setting a breakpoint:</blurb> <blurb>~%breakpoint_set *-t* [type] *-f* [filename] *-n* [lineno]%~</blurb> <blurb>~% *-a* [classname] *-m* [functionname]%~</blurb> <blurb>%breakpoint_set -i 4 -t line -f dbgp-example.php -n 3%</blurb> <blurb>%breakpoint_set -i 5 -t call -m level1%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="breakpoint_set" transaction_id="4" id="31400001"></response>]]></example> <break/> <blurb>Retrieving and deleting breakpoints:</blurb> <blurb>%breakpoint_list -i 6%</blurb> <blurb>%breakpoint_get -i 7 -d 3140002%</blurb> <blurb>%breakpoint_remove -i 7 -d 3140001%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="breakpoint_get" transaction_id="7"> <breakpoint type="call" function="level1" state="enabled" id="31400002"></breakpoint> </response>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-common.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-common.xml +++ presentations/slides/xdebug/dbgp-common.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Basics</title> <subtitle>Section 5.2 and 7.1</subtitle> <blurb>Init packet:</blurb> <example type="xml" class="code_large"><![CDATA[<init fileuri="file:///phpworks/dbgp-example.php" language="PHP" appid="3149" idekey="phpw"> <engine version="2.0.0dev">Xdebug</engine> </init>]]></example> <break/> <blurb>Command layout:</blurb> <blurb>%|229922|[cmd]| *-i* [tid] ..other options..% *--* data</blurb> <break lines="2"/> <blurb>- Options always have the form: %*-[char]* value%</blurb> <blurb>- The %*-i*% transaction ID option is mandatory</blurb> <blurb>- Data, if available, must be base64 encoded</blurb> <break lines="2"/> <blurb>Status reply:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="status" transaction_id="1" status="starting" reason="ok"/>]]></example> <blurb>Statuses are: starting, running, break, stopping and stopped.</blurb> <blurb>Reasons are: ok, error, aborted and exception.</blurb> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-context.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-context.xml +++ presentations/slides/xdebug/dbgp-context.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Context Information</title> <subtitle>Section 7.9 and 7.10</subtitle> <blurb>Retrieve the context names:</blurb> <blurb>%context_names -i 10%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="context_names" transaction_id="10"> <context name="Locals" id="0"></context> <context name="Globals" id="1"></context> </response>]]></example> <break lines="2"/> <blurb>Retrieve information from a context:</blurb> <blurb>%context_get -i 12 -d 0 -c 0%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="context_get" transaction_id="12"> <property name="a" fullname="\$a" address="140272044" type="int"><![CDATA[7]]></property> </response>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-continuation.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-continuation.xml +++ presentations/slides/xdebug/dbgp-continuation.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Continuation Commands</title> <subtitle>Section 7.5</subtitle> <blurb>Run until a breakpoint is hit:</blurb> <blurb>%run -i 8%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="run" transaction_id="8" status="break" reason="ok"></response>]]></example> <break lines="2"/> <blurb>Run until the next statement:</blurb> <blurb>%step_into -i 8%</blurb> <break lines="2"/> <blurb>Run until the next statement in the current scope:</blurb> <blurb>%step_over -i 8%</blurb> <break lines="2"/> <blurb>Run until the next statement in the calling scope:</blurb> <blurb>%step_out -i 8%</blurb> <break lines="2"/> <blurb>Kill the script:</blurb> <blurb>%stop -i 8%</blurb> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-features.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-features.xml +++ presentations/slides/xdebug/dbgp-features.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Features</title> <subtitle>Section 7.2</subtitle> <blurb>Retrieval of features:</blurb> <blurb>%feature_get *-i* 1 *-n* encoding%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="feature_get" transaction_id="1" feature_name="encoding" supported="1"> <![CDATA[UTF-8]]> </response>]]></example> <break/> <blurb>Setting features:</blurb> <blurb>%feature_set *-i* 2 *-n* show_hidden *-v* 1%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<reponse command="feature_set" transaction_id="2" feature="show_hidden" success="1"></response>]]></example> <break/> <blurb>Features include:</blurb> <blurb>%language_name% [RO], %supports_async% [RO], %max_children% [RW], %max_data% [RW], %max_depth% [RO], %show_hidden% [RW] and %supports_postmortem% [RO].</blurb> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-properties.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-properties.xml +++ presentations/slides/xdebug/dbgp-properties.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Variables</title> <subtitle>Section 7.11 and 7.13</subtitle> <blurb>Retrieve a property:</blurb> <blurb>%property_get -i 16 -d 0 -n a%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="property_get" transaction_id="16"> <property name="a" fullname="\$a" address="140272044" type="int"><![CDATA[7]]></property> </response>]]></example> <break lines="2"/> <blurb>Change a property:</blurb> <blurb>%property_set -i 18 -d 0 -n $a -- OA==%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="property_set" transaction_id="18" success="1"></response>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-stack.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-stack.xml +++ presentations/slides/xdebug/dbgp-stack.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Stack Information</title> <subtitle>Section 7.7 and 7.8</subtitle> <blurb>Retrieving the current stack depth:</blurb> <blurb>%stack_depth -i 9%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="stack_depth" transaction_id="9" depth="2"></response>]]></example> <break lines="2"/> <blurb>Retrieve stack information:</blurb> <blurb>%stack_get -i 11%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="stack_get" transaction_id="11"> <stack where="level1" level="0" filename="file:///phpworks/dbgp-example.php" lineno="7"></stack> <stack where="{main}" level="1" filename="file:///phpworks/dbgp-example.php" lineno="10"></stack> </response>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-types.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-types.xml +++ presentations/slides/xdebug/dbgp-types.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Types</title> <subtitle>Section 7.12</subtitle> <blurb>Retrieve the type map:</blurb> <blurb>%typemap_get -i 15%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_medium"><![CDATA[<response command="typemap_get" transaction_id="15" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <map name="bool" type="bool" xsi:type="xsd:boolean"></map> <map name="int" type="int" xsi:type="xsd:decimal"></map> <map name="float" type="float" xsi:type="xsd:double"></map> <map name="string" type="string" xsi:type="xsd:string"></map> <map name="null" type="null"></map> <map name="array" type="hash"></map> <map name="object" type="object"></map> <map name="resource" type="resource"></map> </response>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/debugger-activation.xml?r=1.1&p=1 Index: presentations/slides/xdebug/debugger-activation.xml +++ presentations/slides/xdebug/debugger-activation.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Activating the Remote Debugger</title> <blurb>php.ini settings:</blurb> <example class="code_large" type="ini">xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.extended_info=1</example> <break lines="2"/> <blurb>On the shell:</blurb> <blurb class="small_blurb">% export XDEBUG_CONFIG="idekey=phpworks remote_enable=1"%</blurb> <break lines="2"/> <blurb>With a browser:</blurb> <blurb class="small_blurb">% http://pres/show.php|698fe5|?XDEBUG_SESSION_START=phpworks2|%</blurb> </slide>
http://cvs.php.net/diff.php/presentations/slides/perf/ezp.css?r1=1.5&r2=1.6&ty=u Index: presentations/slides/perf/ezp.css diff -u presentations/slides/perf/ezp.css:1.5 presentations/slides/perf/ezp.css:1.6 --- presentations/slides/perf/ezp.css:1.5 Tue Aug 31 02:49:36 2004 +++ presentations/slides/perf/ezp.css Thu Sep 2 02:56:03 2004 @@ -22,14 +22,21 @@ font-family: verdana, tahoma, arial, helvetica, sans-serif; z-index: 99; } -div.navbar_title, div.navbar_title a { -font-size: 32px; -color: #698fe5; -text-decoration: none; -text-align: left; -font-weight: bold; -margin-top: 20px; +div.navbar_title, div.navbar_title a, div.subtitle { + font-size: 32px; + color: #698fe5; + text-decoration: none; + text-align: left; + font-weight: bold; + margin-top: 20px; +} +div.subtitle { + margin-top: 5px; + font-size: 24; + font-weight: normal; + font-style: italic; } + div.navbar_nr a { font-size: 16px; color: #77a; @@ -51,16 +58,22 @@ list-style: circle; font-size: 20pt; margin-left: 40px; + margin-top: -15px; } li.pres_bullet { -font-size: 24pt; +font-size: 28pt; +margin-right: 40px; } -div.blurb { +div.small_blurb { font-size: 24px; } +div.blurb { + font-size: 32px; +} + div.large_blurb { font-size: 32px; } @@ -82,10 +95,17 @@ font-size: 12px; } +div.code_medium { + background: #ccc; +} +div.code_medium code, div.code_medium pre { + font-size: 20px; +} + div.code_large { background: #ccc; } -div.code_large code { +div.code_large code, div.code_large pre { font-size: 24px; } </style> http://cvs.php.net/diff.php/presentations/slides/xdebug/about.xml?r1=1.3&r2=1.4&ty=u Index: presentations/slides/xdebug/about.xml diff -u presentations/slides/xdebug/about.xml:1.3 presentations/slides/xdebug/about.xml:1.4 --- presentations/slides/xdebug/about.xml:1.3 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/about.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Xdebug</title> + <subtitle>Summary</subtitle> <break lines="2"/> <list> <bullet>Protects against infinite recursion</bullet> http://cvs.php.net/diff.php/presentations/slides/xdebug/ccoverage1.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/xdebug/ccoverage1.xml diff -u presentations/slides/xdebug/ccoverage1.xml:1.1 presentations/slides/xdebug/ccoverage1.xml:1.2 --- presentations/slides/xdebug/ccoverage1.xml:1.1 Tue Aug 31 02:49:36 2004 +++ presentations/slides/xdebug/ccoverage1.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Code Coverage - Testfile</title> + <title>Code Coverage</title> + <subtitle>Function To Test and Test Driver</subtitle> <blurb>Function to test (bigassfunction.php):</blurb> <example><![CDATA[<?php http://cvs.php.net/diff.php/presentations/slides/xdebug/ccoverage2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/xdebug/ccoverage2.xml diff -u presentations/slides/xdebug/ccoverage2.xml:1.1 presentations/slides/xdebug/ccoverage2.xml:1.2 --- presentations/slides/xdebug/ccoverage2.xml:1.1 Tue Aug 31 02:49:36 2004 +++ presentations/slides/xdebug/ccoverage2.xml Thu Sep 2 02:56:03 2004 @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Code Coverage - Test Application</title> + <title>Code Coverage</title> + <subtitle>The Testing Application</subtitle> - <blurb>Test program:</blurb> <example><![CDATA[<?php echo "Output:\n\n"; xdebug_start_code_coverage(); http://cvs.php.net/diff.php/presentations/slides/xdebug/ccoverage3.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/xdebug/ccoverage3.xml diff -u presentations/slides/xdebug/ccoverage3.xml:1.1 presentations/slides/xdebug/ccoverage3.xml:1.2 --- presentations/slides/xdebug/ccoverage3.xml:1.1 Tue Aug 31 02:49:36 2004 +++ presentations/slides/xdebug/ccoverage3.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Code Coverage - Result</title> + <title>Code Coverage</title> + <subtitle>The Highlighted Source as Result</subtitle> <image align="right" filename="ccoverage-end.png"/> <blurb> http://cvs.php.net/diff.php/presentations/slides/xdebug/dbgp.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/xdebug/dbgp.xml diff -u presentations/slides/xdebug/dbgp.xml:1.2 presentations/slides/xdebug/dbgp.xml:1.3 --- presentations/slides/xdebug/dbgp.xml:1.2 Thu Jun 17 08:12:03 2004 +++ presentations/slides/xdebug/dbgp.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp mode</title> + <subtitle>DeBuGger Protocol</subtitle> <list fontsize="4em"> <bullet>Input commands as "command line parameters"</bullet> @@ -8,7 +9,7 @@ <bullet>Output data as *documented* XML:</bullet> </list> <break /> - <example><![CDATA[data_length + <example type="xml" class="code_medium"><![CDATA[data_length [NULL] <response command="command_name" transaction_id="transaction_id"/> [NULL]]]></example> http://cvs.php.net/diff.php/presentations/slides/xdebug/functiontrace-computerized.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/xdebug/functiontrace-computerized.xml diff -u presentations/slides/xdebug/functiontrace-computerized.xml:1.1 presentations/slides/xdebug/functiontrace-computerized.xml:1.2 --- presentations/slides/xdebug/functiontrace-computerized.xml:1.1 Tue Aug 31 02:49:36 2004 +++ presentations/slides/xdebug/functiontrace-computerized.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Execution trace to file (computerized)</title> + <title>Execution trace to file</title> + <subtitle>Automatic readable format</subtitle> <image filename="tracefile-computerized.png"/> <break/> <example class="code_large" fontsize="1.7em">xdebug.auto_trace=1 ; enable tracing http://cvs.php.net/diff.php/presentations/slides/xdebug/gathering1.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/xdebug/gathering1.xml diff -u presentations/slides/xdebug/gathering1.xml:1.2 presentations/slides/xdebug/gathering1.xml:1.3 --- presentations/slides/xdebug/gathering1.xml:1.2 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/gathering1.xml Thu Sep 2 02:56:03 2004 @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Gathering debug data 1</title> + <title>Gathering debug data</title> + <subtitle>Functions and parameters</subtitle> + + <break lines="2"/> - <blurb> </blurb> <list fontsize="5em"> <bullet>Functions and classnames</bullet> </list> http://cvs.php.net/diff.php/presentations/slides/xdebug/gathering2.xml?r1=1.3&r2=1.4&ty=u Index: presentations/slides/xdebug/gathering2.xml diff -u presentations/slides/xdebug/gathering2.xml:1.3 presentations/slides/xdebug/gathering2.xml:1.4 --- presentations/slides/xdebug/gathering2.xml:1.3 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/gathering2.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Gathering debug data 2</title> + <title>Gathering debug data</title> + <subtitle>Memory and Time</subtitle> <break lines="2"/> http://cvs.php.net/diff.php/presentations/slides/xdebug/hooks1.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/xdebug/hooks1.xml diff -u presentations/slides/xdebug/hooks1.xml:1.2 presentations/slides/xdebug/hooks1.xml:1.3 --- presentations/slides/xdebug/hooks1.xml:1.2 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/hooks1.xml Thu Sep 2 02:56:03 2004 @@ -6,11 +6,11 @@ <list fontsize="5em"> <bullet>Xdebug hooks into these events:</bullet> </list> - <image align="left" marginright="2em" filename="hooks.jpg"/> <list class="level2" fontsize="4em" marginleft="1em"> <bullet>Executing user defined function</bullet> <bullet>Executing internal function</bullet> <bullet>Compiling a file</bullet> <bullet>Executing a statement</bullet> </list> + <image align="right" marginright="2em" filename="hooks.jpg"/> </slide> http://cvs.php.net/diff.php/presentations/slides/xdebug/interfaces.xml?r1=1.4&r2=1.5&ty=u Index: presentations/slides/xdebug/interfaces.xml diff -u presentations/slides/xdebug/interfaces.xml:1.4 presentations/slides/xdebug/interfaces.xml:1.5 --- presentations/slides/xdebug/interfaces.xml:1.4 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/interfaces.xml Thu Sep 2 02:56:03 2004 @@ -6,8 +6,7 @@ <bullet>PHP 3 debugger mode</bullet> </list> <list class="level2" fontsize="3.5em" marginleft="4em"> - <bullet>Port of the old remote debug dump</bullet> - <bullet marginleft="5em" type="none">interface for PHP 3</bullet> + <bullet>Port of the old remote debug dump interface for PHP 3</bullet> <bullet>Available in Xdebug 1.x and 2.x</bullet> </list> http://cvs.php.net/diff.php/presentations/slides/xdebug/profiling.xml?r1=1.3&r2=1.4&ty=u Index: presentations/slides/xdebug/profiling.xml diff -u presentations/slides/xdebug/profiling.xml:1.3 presentations/slides/xdebug/profiling.xml:1.4 --- presentations/slides/xdebug/profiling.xml:1.3 Sat Aug 28 08:06:01 2004 +++ presentations/slides/xdebug/profiling.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Profiling</title> + <subtitle>KCacheGrind's Flat Profile and Call List</subtitle> <image filename="pg1.png" align="right"/> <example class="code_large">xdebug.profiler_enable=1 ; enable profiler http://cvs.php.net/diff.php/presentations/slides/xdebug/profiling2.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/xdebug/profiling2.xml diff -u presentations/slides/xdebug/profiling2.xml:1.2 presentations/slides/xdebug/profiling2.xml:1.3 --- presentations/slides/xdebug/profiling2.xml:1.2 Thu Jun 17 08:12:03 2004 +++ presentations/slides/xdebug/profiling2.xml Thu Sep 2 02:56:03 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Profiling (2)</title> + <title>Profiling</title> + <subtitle>KCacheGrind's Call Graph and Source Annotations</subtitle> <image filename="pg4.png" marginright="2em" align="right"/> <break/> http://cvs.php.net/diff.php/presentations/slides/xdebug/survey.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/xdebug/survey.xml diff -u presentations/slides/xdebug/survey.xml:1.1 presentations/slides/xdebug/survey.xml:1.2 --- presentations/slides/xdebug/survey.xml:1.1 Tue Aug 31 02:49:36 2004 +++ presentations/slides/xdebug/survey.xml Thu Sep 2 02:56:03 2004 @@ -4,11 +4,10 @@ <blurb class="large_blurb">Who...</blurb> <list> - <bullet effect="hide">did never hear about |ff0000|PHP|?</bullet> - <bullet effect="hide">wrote PHP applications > |00ff00|10k| LOC?</bullet> - <bullet effect="hide">wrote PHP applications > |ff8000|50k| LOC?</bullet> - <bullet effect="hide">knows the answer of the meaning of life, the universe and everything?</bullet> - <bullet effect="hide">wrote PHP applications > |ff0000|100k| LOC?</bullet> + <bullet effect="hide">did never hear about |698fe5|PHP|?</bullet> + <bullet effect="hide">used PHP in a web application?</bullet> + <bullet effect="hide">wrote PHP applications > |698fe5|10k| LOC?</bullet> + <bullet effect="hide">wrote PHP applications > |698fe5|100k| LOC?</bullet> <bullet effect="hide">uses Xdebug?</bullet> <bullet effect="hide">is bored of these questions?</bullet> </list> http://cvs.php.net/co.php/presentations/xdebug-phpworks04.xml?r=1.1&p=1 Index: presentations/xdebug-phpworks04.xml +++ presentations/xdebug-phpworks04.xml <?xml version="1.0" encoding="iso-8859-1"?> <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#f1fbff" logo1="" stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>Debugging</topic> <title>Efficient debugging with Xdebug</title> <event>php|works</event> <location>Toronto, Canada</location> <date>September 22th, 2004</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <url>http://pres.derickrethans.nl/xdebug-phpworks04</url> <slide>slides/xdebug/title.xml</slide> <!-- INTRODUCTION --> <slide>slides/xdebug/questions.xml</slide> <slide>slides/xdebug/how-started.xml</slide> <!-- BASIC STUFF --> <slide>slides/xdebug/infinite.xml</slide> <slide>slides/xdebug/vardump.xml</slide> <slide>slides/xdebug/stacktrace.xml</slide> <slide>slides/xdebug/local-vars2.xml</slide> <!-- SUPER GLOBALS --> <slide>slides/xdebug/superglobals.xml</slide> <!-- TRACING --> <slide>slides/xdebug/functiontrace-file.xml</slide> <slide>slides/xdebug/vim.xml</slide> <slide>slides/xdebug/functiontrace-computerized.xml</slide> <slide>slides/xdebug/xgui.xml</slide> <!-- PROFILING --> <slide>slides/xdebug/profiling.xml</slide> <slide>slides/xdebug/profiling2.xml</slide> <!-- CODE COVERAGE --> <slide>slides/xdebug/ccoverage1.xml</slide> <slide>slides/xdebug/ccoverage2.xml</slide> <slide>slides/xdebug/ccoverage3.xml</slide> <!-- THEORY --> <slide>slides/xdebug/gathering-data.xml</slide> <slide>slides/xdebug/gathering1.xml</slide> <slide>slides/xdebug/gathering2.xml</slide> <slide>slides/xdebug/hooks1.xml</slide> <!-- REMOTE INTERFACES --> <slide>slides/xdebug/interfaces.xml</slide> <slide>slides/xdebug/debugger-activation.xml</slide> <slide>slides/xdebug/gdb.xml</slide> <slide>slides/xdebug/gdb-xml.xml</slide> <slide>slides/xdebug/dbgp.xml</slide> <!-- DBGp COMMAND SET --> <slide>slides/xdebug/dbgp-common.xml</slide> <!-- -i, encoding, __, init --> <slide>slides/xdebug/dbgp-features.xml</slide> <!-- feature_get, feature_set --> <slide>slides/xdebug/dbgp-continuation.xml</slide> <!-- run, step_*, stop, detach --> <slide>slides/xdebug/dbgp-breakpoints.xml</slide> <!-- breakpoint_* --> <slide>slides/xdebug/dbgp-breakpoint-types.xml</slide> <!-- breakpoint_* --> <slide>slides/xdebug/dbgp-stack.xml</slide> <!-- stack_depth, stack_get --> <slide>slides/xdebug/dbgp-context.xml</slide> <!-- context_names, context_get --> <slide>slides/xdebug/dbgp-types.xml</slide> <!-- typemap_get, property_* --> <slide>slides/xdebug/dbgp-properties.xml</slide> <!-- typemap_get, property_* --> <!-- KOMODO SCREENSHOTS --> <!-- XDCX? --> <!-- END --> <slide>slides/xdebug/about.xml</slide> <slide>slides/xdebug/resources.xml</slide> </presentation> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-breakpoint-types.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-breakpoint-types.xml +++ presentations/slides/xdebug/dbgp-breakpoint-types.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Breakpoint Types</title> <subtitle>Section 7.6</subtitle> <blurb>Option explanation:</blurb> <break/> <example><![CDATA[-a class name -f file name -m function name -n line number -x exception -- expression]]></example> <break/> <blurb>Different breakpoint types:</blurb> <blurb>- ~line~: on a file/line combination (req: *-f* and *-n*)</blurb> <blurb>- ~call~: on function entrance (req: *-m*; opt: *-a*)</blurb> <blurb>- ~return~: on function exit (req: *-m*; opt: *-a*)</blurb> <blurb>- ~exception~: on exception of given name (req: *-x*)</blurb> <blurb>- ~conditional~: when condition is met (req: *--* and *-f*; opt: *-n*)</blurb> <break lines="2"/> <blurb>Extra options:</blurb> <break/> <example><![CDATA[-o hit condition (>=, == or %) -g hit value]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-breakpoints.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-breakpoints.xml +++ presentations/slides/xdebug/dbgp-breakpoints.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Breakpoints</title> <subtitle>Section 7.6</subtitle> <blurb>Setting a breakpoint:</blurb> <blurb>~%breakpoint_set *-t* [type] *-f* [filename] *-n* [lineno]%~</blurb> <blurb>~% *-a* [classname] *-m* [functionname]%~</blurb> <blurb>%breakpoint_set -i 4 -t line -f dbgp-example.php -n 3%</blurb> <blurb>%breakpoint_set -i 5 -t call -m level1%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="breakpoint_set" transaction_id="4" id="31400001"></response>]]></example> <break/> <blurb>Retrieving and deleting breakpoints:</blurb> <blurb>%breakpoint_list -i 6%</blurb> <blurb>%breakpoint_get -i 7 -d 3140002%</blurb> <blurb>%breakpoint_remove -i 7 -d 3140001%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="breakpoint_get" transaction_id="7"> <breakpoint type="call" function="level1" state="enabled" id="31400002"></breakpoint> </response>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-common.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-common.xml +++ presentations/slides/xdebug/dbgp-common.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Basics</title> <subtitle>Section 5.2 and 7.1</subtitle> <blurb>Init packet:</blurb> <example type="xml" class="code_large"><![CDATA[<init fileuri="file:///phpworks/dbgp-example.php" language="PHP" appid="3149" idekey="phpw"> <engine version="2.0.0dev">Xdebug</engine> </init>]]></example> <break/> <blurb>Command layout:</blurb> <blurb>%|229922|[cmd]| *-i* [tid] ..other options..% *--* data</blurb> <break lines="2"/> <blurb>- Options always have the form: %*-[char]* value%</blurb> <blurb>- The %*-i*% transaction ID option is mandatory</blurb> <blurb>- Data, if available, must be base64 encoded</blurb> <break lines="2"/> <blurb>Status reply:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="status" transaction_id="1" status="starting" reason="ok"/>]]></example> <blurb>Statuses are: starting, running, break, stopping and stopped.</blurb> <blurb>Reasons are: ok, error, aborted and exception.</blurb> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-context.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-context.xml +++ presentations/slides/xdebug/dbgp-context.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Context Information</title> <subtitle>Section 7.9 and 7.10</subtitle> <blurb>Retrieve the context names:</blurb> <blurb>%context_names -i 10%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="context_names" transaction_id="10"> <context name="Locals" id="0"></context> <context name="Globals" id="1"></context> </response>]]></example> <break lines="2"/> <blurb>Retrieve information from a context:</blurb> <blurb>%context_get -i 12 -d 0 -c 0%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="context_get" transaction_id="12"> <property name="a" fullname="\$a" address="140272044" type="int"><![CDATA[7]]></property> </response>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-continuation.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-continuation.xml +++ presentations/slides/xdebug/dbgp-continuation.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Continuation Commands</title> <subtitle>Section 7.5</subtitle> <blurb>Run until a breakpoint is hit:</blurb> <blurb>%run -i 8%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="run" transaction_id="8" status="break" reason="ok"></response>]]></example> <break lines="2"/> <blurb>Run until the next statement:</blurb> <blurb>%step_into -i 8%</blurb> <break lines="2"/> <blurb>Run until the next statement in the current scope:</blurb> <blurb>%step_over -i 8%</blurb> <break lines="2"/> <blurb>Run until the next statement in the calling scope:</blurb> <blurb>%step_out -i 8%</blurb> <break lines="2"/> <blurb>Kill the script:</blurb> <blurb>%stop -i 8%</blurb> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-features.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-features.xml +++ presentations/slides/xdebug/dbgp-features.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Features</title> <subtitle>Section 7.2</subtitle> <blurb>Retrieval of features:</blurb> <blurb>%feature_get *-i* 1 *-n* encoding%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="feature_get" transaction_id="1" feature_name="encoding" supported="1"> <![CDATA[UTF-8]]> </response>]]></example> <break/> <blurb>Setting features:</blurb> <blurb>%feature_set *-i* 2 *-n* show_hidden *-v* 1%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<reponse command="feature_set" transaction_id="2" feature="show_hidden" success="1"></response>]]></example> <break/> <blurb>Features include:</blurb> <blurb>%language_name% [RO], %supports_async% [RO], %max_children% [RW], %max_data% [RW], %max_depth% [RO], %show_hidden% [RW] and %supports_postmortem% [RO].</blurb> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-properties.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-properties.xml +++ presentations/slides/xdebug/dbgp-properties.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Variables</title> <subtitle>Section 7.11 and 7.13</subtitle> <blurb>Retrieve a property:</blurb> <blurb>%property_get -i 16 -d 0 -n a%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="property_get" transaction_id="16"> <property name="a" fullname="\$a" address="140272044" type="int"><![CDATA[7]]></property> </response>]]></example> <break lines="2"/> <blurb>Change a property:</blurb> <blurb>%property_set -i 18 -d 0 -n $a -- OA==%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="property_set" transaction_id="18" success="1"></response>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-stack.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-stack.xml +++ presentations/slides/xdebug/dbgp-stack.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Stack Information</title> <subtitle>Section 7.7 and 7.8</subtitle> <blurb>Retrieving the current stack depth:</blurb> <blurb>%stack_depth -i 9%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="stack_depth" transaction_id="9" depth="2"></response>]]></example> <break lines="2"/> <blurb>Retrieve stack information:</blurb> <blurb>%stack_get -i 11%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_large"><![CDATA[<response command="stack_get" transaction_id="11"> <stack where="level1" level="0" filename="file:///phpworks/dbgp-example.php" lineno="7"></stack> <stack where="{main}" level="1" filename="file:///phpworks/dbgp-example.php" lineno="10"></stack> </response>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/dbgp-types.xml?r=1.1&p=1 Index: presentations/slides/xdebug/dbgp-types.xml +++ presentations/slides/xdebug/dbgp-types.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>DBGp Types</title> <subtitle>Section 7.12</subtitle> <blurb>Retrieve the type map:</blurb> <blurb>%typemap_get -i 15%</blurb> <break/> <blurb>response:</blurb> <example type="xml" class="code_medium"><![CDATA[<response command="typemap_get" transaction_id="15" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <map name="bool" type="bool" xsi:type="xsd:boolean"></map> <map name="int" type="int" xsi:type="xsd:decimal"></map> <map name="float" type="float" xsi:type="xsd:double"></map> <map name="string" type="string" xsi:type="xsd:string"></map> <map name="null" type="null"></map> <map name="array" type="hash"></map> <map name="object" type="object"></map> <map name="resource" type="resource"></map> </response>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/xdebug/debugger-activation.xml?r=1.1&p=1 Index: presentations/slides/xdebug/debugger-activation.xml +++ presentations/slides/xdebug/debugger-activation.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Activating the Remote Debugger</title> <blurb>php.ini settings:</blurb> <example class="code_large" type="ini">xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.extended_info=1</example> <break lines="2"/> <blurb>On the shell:</blurb> <blurb class="small_blurb">% export XDEBUG_CONFIG="idekey=phpworks remote_enable=1"%</blurb> <break lines="2"/> <blurb>With a browser:</blurb> <blurb class="small_blurb">% http://pres/show.php|698fe5|?XDEBUG_SESSION_START=phpworks2|%</blurb> </slide>