com presentations: PHPers Xdebug Talk: slides/xdebug/dbgp-connection.xml slides/xdebug/debugger-activation.xml slides/xdebug/debugger-browser-extensions.xml slides/xdebug/debugger-connection-log.xml slides/xdebug/donate.xml slides/xdebug/focus-on-xdebug.xml slides/xdebug/focus-on-xdebug2.xml slides/xdebug/focus-on-xdebug3.xml slides/xdebug/patreon.png slides/xdebug/phpstorm-new.png slides/xdebug/phpstorm.xml slides/xdebug/step-debugging.xml slide
[email protected] (Derick Rethans) Wed, 27 Feb 2019 15:58:59 +0000
| Newsgroups | php.pres |
|---|---|
| Message-ID | <[email protected]> |
Commit: 84f78f86dd8e8e1c82e5ad1be6545553cb1358f8 Author: Derick Rethans <[email protected]> Wed, 27 Feb 2019 15:58:59 +0000 Parents: b7ef2c4796c6dd76ee94592c96d1d64ca1ee892e Branches: master Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=84f78f86dd8e8e1c82e5ad1be6545553cb1358f8 Log: PHPers Xdebug Talk Changed paths: A slides/xdebug/dbgp-connection.xml M slides/xdebug/debugger-activation.xml M slides/xdebug/debugger-browser-extensions.xml M slides/xdebug/debugger-connection-log.xml M slides/xdebug/donate.xml A slides/xdebug/focus-on-xdebug.xml A slides/xdebug/focus-on-xdebug2.xml A slides/xdebug/focus-on-xdebug3.xml M slides/xdebug/patreon.png A slides/xdebug/phpstorm-new.png M slides/xdebug/phpstorm.xml A slides/xdebug/step-debugging.xml M slides/xdebug/vld-path-3-paths.png M slides/xdebug/xdebug-2.6-filter2.xml M slides/xdebug/xdebug-2.6-switch.xml M slides/xdebug/xdebug-2.6-switch2.xml M slides/xdebug/xdebug-2.7-new.xml A xdebug-phpers19.xml
diff_84f78f86dd8e8e1c82e5ad1be6545553cb1358f8.txt
(text/plain, 19.6 KB)
diff --git a/slides/xdebug/dbgp-connection.xml b/slides/xdebug/dbgp-connection.xml
new file mode 100644
index 0000000..7e0493a
--- /dev/null
+++ b/slides/xdebug/dbgp-connection.xml
@@ -0,0 +1,17 @@
+<slide>
+<title>Step Debugging: Xdebug connects to IDE</title>
+
+<break lines='2'/>
+
+<div effect="fade-out">
+<blurb class="centre">Normal operation</blurb>
+<break/>
+<image filename="xdebug-dbgp-connect1-anim.gif"/>
+</div>
+
+<div effect="fade-in">
+<blurb class="centre">Operation with %xdebug.remote_connect_back%</blurb>
+<break/>
+<image filename="xdebug-dbgp-connect2-anim.gif"/>
+</div>
+</slide>
diff --git a/slides/xdebug/debugger-activation.xml b/slides/xdebug/debugger-activation.xml
index e12d3e7..9c30e35 100644
--- a/slides/xdebug/debugger-activation.xml
+++ b/slides/xdebug/debugger-activation.xml
@@ -1,5 +1,5 @@
<slide>
- <title>Activating the Remote Debugger</title>
+ <title>Activating the Step Debugger</title>
<div effect="fade-out">
<blurb>php.ini settings:</blurb>
@@ -11,8 +11,8 @@
<div effect="fade-in-out">
<blurb>php.ini settings:</blurb>
<blurb class="small_blurb">% xdebug.remote_enable=1%</blurb>
- <blurb class="small_blurb">% xdebug.remote_host=localhost%</blurb>
- <blurb class="small_blurb">% xdebug.remote_port=9000%</blurb>
+ <blurb class="small_blurb">|777777|% xdebug.remote_host=localhost%|</blurb>
+ <blurb class="small_blurb">|777777|% xdebug.remote_port=9000%|</blurb>
<blurb class="small_blurb">*% xdebug.remote_connect_back=1%*</blurb>
</div>
diff --git a/slides/xdebug/debugger-browser-extensions.xml b/slides/xdebug/debugger-browser-extensions.xml
index 0ac9c8c..49161fc 100644
--- a/slides/xdebug/debugger-browser-extensions.xml
+++ b/slides/xdebug/debugger-browser-extensions.xml
@@ -1,5 +1,5 @@
<slide style="white" background="bugs.jpg">
- <title>Activating the Remote Debugger</title>
+ <title>Activating the Step Debugger</title>
<blurb>With browser extensions:</blurb>
<blurb>Firefox:<br/><link href="https://addons.mozilla.org/en-gb/firefox/tag/xdebug"/></blurb>
diff --git a/slides/xdebug/debugger-connection-log.xml b/slides/xdebug/debugger-connection-log.xml
index fc65828..091da7a 100644
--- a/slides/xdebug/debugger-connection-log.xml
+++ b/slides/xdebug/debugger-connection-log.xml
@@ -1,5 +1,5 @@
<slide>
-<title>Remote debugging log</title>
+<title>Step Debugger Logs</title>
<example>xdebug.remote_log=/tmp/remote.log</example>
@@ -8,30 +8,30 @@
<bullet>Also shows connection attempts and failures:</bullet>
</list>
-<example>
+<example inline="2">
xdebug.remote_connect_back=0
xdebug.remote_host=nothere
xdebug.remote_port=9002
I: Connecting to configured address/port: nothere:9002.
-E: Could not connect to client. :-(
+E: Could not connect to client. *:-(*
</example>
-<example>
+<example inline="2">
xdebug.remote_connect_back=1
-xdebug.remote_host=nothere2
+|777777|xdebug.remote_host=SomethingEntirelyDifferent|
xdebug.remote_port=9003
I: Checking remote connect back address.
-W: Remote address not found, connecting to configured address/port: nothere2:9003. :-|
-E: Could not connect to client. :-(
+W: Remote address not found, connecting to configured address/port: nothere:9003. *:-|*
+E: Could not connect to client. *:-(*
</example>
-<example>
+<example inline="2">
xdebug.remote_connect_back=0
xdebug.remote_port=9991
I: Connecting to configured address/port: localhost:9991.
-I: Connected to client. :-)
+I: Connected to client. *|009900|:-)|*
</example>
</slide>
diff --git a/slides/xdebug/donate.xml b/slides/xdebug/donate.xml
index f4ca652..6517dab 100644
--- a/slides/xdebug/donate.xml
+++ b/slides/xdebug/donate.xml
@@ -1,14 +1,18 @@
<slide>
-<title>Xdebug</title>
+<title>Supporting Xdebug</title>
<list>
<bullet>It's Open Source and free (as in "free beer")</bullet>
<bullet>Using Xdebug saves you a lot of time</bullet>
<bullet>Working on Xdebug takes up a lot of time</bullet>
</list>
-<break lines="5"/>
+<break lines="2"/>
+<blurb align="center">*Features and Bugs*</blurb>
+<blurb align="center">%https://bugs.xdebug.org%</blurb>
+
+<break lines="2"/>
<image align="center" filename="patreon.png" pdf-scale="0.8" y-offset="4"/>
-<blurb align="center">https://www.patreon.com/derickr</blurb>
+<blurb align="center">%https://www.patreon.com/derickr%</blurb>
</slide>
diff --git a/slides/xdebug/focus-on-xdebug.xml b/slides/xdebug/focus-on-xdebug.xml
new file mode 100644
index 0000000..b62e62b
--- /dev/null
+++ b/slides/xdebug/focus-on-xdebug.xml
@@ -0,0 +1,12 @@
+<slide>
+<title>The Xdebug Experience</title>
+
+<blurb>Xdebug is 17 years old, and has plenty of issues:</blurb>
+
+<list>
+ <bullet>*Configuration Confusion*<br/><small>65 configuration settings: pointless, duplicated, or incompatible at the same time</small></bullet>
+ <bullet>*Unproductive Usability*<br/><small>port 9000, missing breakpoints, education (networking)</small></bullet>
+ <bullet>*Poor Performance*</bullet>
+ <bullet>*Lagging Behind*<br/><small>PHP 7.3 has been out for 3 months</small></bullet>
+</list>
+</slide>
diff --git a/slides/xdebug/focus-on-xdebug2.xml b/slides/xdebug/focus-on-xdebug2.xml
new file mode 100644
index 0000000..0e9a5dd
--- /dev/null
+++ b/slides/xdebug/focus-on-xdebug2.xml
@@ -0,0 +1,12 @@
+<slide>
+<title>The Xdebug Experience: Solutions</title>
+
+<list>
+ <bullet>The *Big Refactor* project</bullet>
+ <bullet>Setting up CI (with PHP 7.4/8.0 nightlies)</bullet>
+ <bullet>Education<br/><small>Networking, settings, how Xdebug interacts</small></bullet>
+ <bullet>Performance analysis and improvements for specific features</bullet>
+</list>
+<break/>
+<blurb>In order to get this all done, I would need sponsoring</blurb>
+</slide>
diff --git a/slides/xdebug/focus-on-xdebug3.xml b/slides/xdebug/focus-on-xdebug3.xml
new file mode 100644
index 0000000..688b93f
--- /dev/null
+++ b/slides/xdebug/focus-on-xdebug3.xml
@@ -0,0 +1,21 @@
+<slide>
+<title>The Xdebug Experience: The Plan</title>
+
+<blurb>*Xdebug ~2.8~*</blurb>
+<list>
+ <bullet>Set up a local CI</bullet>
+ <bullet>Improve 'breakpoint' behaviour</bullet>
+</list>
+<break/>
+<blurb>*Xdebug ~3~*</blurb>
+<list>
+ <bullet>The Big Refactor™
+ <list>
+ <bullet>Introducing modes</bullet>
+ <bullet>Simplify configuration and validation</bullet>
+ </list>
+ </bullet>
+ <bullet>Performance Improvements</bullet>
+ <bullet>Async debugging</bullet>
+</list>
+</slide>
diff --git a/slides/xdebug/patreon.png b/slides/xdebug/patreon.png
index f76ca14..1ca03d8 100644
Binary files a/slides/xdebug/patreon.png and b/slides/xdebug/patreon.png differ
diff --git a/slides/xdebug/phpstorm-new.png b/slides/xdebug/phpstorm-new.png
new file mode 100644
index 0000000..b91b23d
Binary files /dev/null and b/slides/xdebug/phpstorm-new.png differ
diff --git a/slides/xdebug/phpstorm.xml b/slides/xdebug/phpstorm.xml
index 99e0c23..f5e54a4 100644
--- a/slides/xdebug/phpstorm.xml
+++ b/slides/xdebug/phpstorm.xml
@@ -1 +1 @@
-<slide><title>PHPStorm</title><break/><image filename="phpstorm.png"/></slide>
+<slide><title>PhpStorm</title><break/><image filename="phpstorm.png"/></slide>
diff --git a/slides/xdebug/step-debugging.xml b/slides/xdebug/step-debugging.xml
new file mode 100644
index 0000000..9a84ed9
--- /dev/null
+++ b/slides/xdebug/step-debugging.xml
@@ -0,0 +1,13 @@
+<slide>
+<title>Step Debugging</title>
+
+<list>
+<bullet>Stepping through the execution of your script</bullet>
+<bullet>Great IDEs support</bullet>
+<bullet>Common language-agnostic protocol (DBGp)</bullet>
+</list>
+
+<break/>
+
+<image filename="phpstorm-new.png"/>
+</slide>
diff --git a/slides/xdebug/vld-path-3-paths.png b/slides/xdebug/vld-path-3-paths.png
index f16b367..14ede78 100644
Binary files a/slides/xdebug/vld-path-3-paths.png and b/slides/xdebug/vld-path-3-paths.png differ
diff --git a/slides/xdebug/xdebug-2.6-filter2.xml b/slides/xdebug/xdebug-2.6-filter2.xml
index fe98ca7..d6f6ca3 100644
--- a/slides/xdebug/xdebug-2.6-filter2.xml
+++ b/slides/xdebug/xdebug-2.6-filter2.xml
@@ -3,59 +3,73 @@
<div effect="fade-out">
<example>
-PHPUnit 5.7.22 by Sebastian Bergmann and contributors.
-
-............................................................. 61 / 1198 ( 5%)
-...............................SEEE.......................... 122 / 1198 ( 10%)
-............................................................. 183 / 1198 ( 15%)
-...............S.....S.....SS................................ 244 / 1198 ( 20%)
-............................................................. 305 / 1198 ( 25%)
-.............................F............................... 366 / 1198 ( 30%)
-............................................................. 427 / 1198 ( 35%)
-...........................................................F. 488 / 1198 ( 40%)
-.......................................................F..... 549 / 1198 ( 45%)
-...................................S......................... 610 / 1198 ( 50%)
-.SSS......................S....IIIIIIIIIIIIIIIIIIII.......... 671 / 1198 ( 56%)
-.....................................S....................... 732 / 1198 ( 61%)
-.....SSSSSSSSSSSSSSSSSSSS.................................... 793 / 1198 ( 66%)
-............................................SSSSSSSSSSSSSSSSS 854 / 1198 ( 71%)
-SSS.......................................................... 915 / 1198 ( 76%)
-............................................................. 976 / 1198 ( 81%)
-............................................................. 1037 / 1198 ( 86%)
-............................................................. 1098 / 1198 ( 91%)
-............................................................. 1159 / 1198 ( 96%)
-...........................EEEEEE...... 1198 / 1198 (100%)
-
-Time: 3.53 minutes, Memory: 56.00MB
+$ vendor/bin/phpunit --exclude-group slow --coverage-html /tmp/cc
+PHPUnit 7.5.6 by Sebastian Bergmann and contributors.
+
+............................................RR............... 61 / 1190 ( 5%)
+.RRRRR.........................S............................. 122 / 1190 ( 10%)
+....................................R......E................. 183 / 1190 ( 15%)
+............S.....S.....SS.......R.R......................... 244 / 1190 ( 20%)
+........................R.......E.......F........RRRR....RRRR 305 / 1190 ( 25%)
+RR.....E..................F..E............................... 366 / 1190 ( 30%)
+............................................................. 427 / 1190 ( 35%)
+............................R..........E................F.... 488 / 1190 ( 41%)
+....................................E...............F........ 549 / 1190 ( 46%)
+.......R.R.....................RS..........................SS 610 / 1190 ( 51%)
+S.R....................S...RIIIIIIIIIIIIIIIIIIIIR............ 671 / 1190 ( 56%)
+..................................S.......................... 732 / 1190 ( 61%)
+..SSSSSSSSSSSSSSSSSSSS...R.R................................. 793 / 1190 ( 66%)
+.........................................SSSSSSSSSSSSSSSSSSSS 854 / 1190 ( 71%)
+............................................................. 915 / 1190 ( 76%)
+RR.R..R........R..R...........................RR.R....RR..... 976 / 1190 ( 82%)
+.R.R.RR...........................................RRR........ 1037 / 1190 ( 87%)
+.S..............................................R............ 1098 / 1190 ( 92%)
+............................................................. 1159 / 1190 ( 97%)
+............RRR....EEEEEE...... 1190 / 1190 (100%)
+
+Time: 2.08 minutes, Memory: 68.00 MB
+</example>
+</div>
+
+<div effect="fade-in-out stop">
+<example inline="2">
+$ vendor/bin/phpunit *--dump-xdebug-filter /tmp/filter.php*
+PHPUnit 7.5.6 by Sebastian Bergmann and contributors.
+
+Wrote Xdebug filter script to /tmp/filter.php
+
+$ php *-dauto_prepend_file=/tmp/filter.php* vendor/bin/phpunit --coverage-html /tmp/cc
+PHPUnit 7.5.6 by Sebastian Bergmann and contributors.
</example>
</div>
<div effect="fade-in">
<example inline="2">
-PHPUnit 5.7.22 by Sebastian Bergmann and contributors.
-
-............................................................. 61 / 1198 ( 5%)
-...............................SEEE.......................... 122 / 1198 ( 10%)
-............................................................. 183 / 1198 ( 15%)
-...............S.....S.....SS................................ 244 / 1198 ( 20%)
-............................................................. 305 / 1198 ( 25%)
-.............................F............................... 366 / 1198 ( 30%)
-............................................................. 427 / 1198 ( 35%)
-...........................................................F. 488 / 1198 ( 40%)
-.......................................................F..... 549 / 1198 ( 45%)
-...................................S......................... 610 / 1198 ( 50%)
-.SSS......................S....IIIIIIIIIIIIIIIIIIII.......... 671 / 1198 ( 56%)
-.....................................S....................... 732 / 1198 ( 61%)
-.....SSSSSSSSSSSSSSSSSSSS.................................... 793 / 1198 ( 66%)
-............................................SSSSSSSSSSSSSSSSS 854 / 1198 ( 71%)
-SSS.......................................................... 915 / 1198 ( 76%)
-............................................................. 976 / 1198 ( 81%)
-............................................................. 1037 / 1198 ( 86%)
-............................................................. 1098 / 1198 ( 91%)
-............................................................. 1159 / 1198 ( 96%)
-...........................EEEEEE...... 1198 / 1198 (100%)
-
-Time: *2.07* minutes, Memory: *28.00MB*
+$ *php -dauto_prepend_file=/tmp/filter.php* vendor/bin/phpunit --coverage-html /tmp/cc
+PHPUnit 7.5.6 by Sebastian Bergmann and contributors.
+
+............................................RR............... 61 / 1190 ( 5%)
+.RRRRR.........................S............................. 122 / 1190 ( 10%)
+....................................R......E................. 183 / 1190 ( 15%)
+............S.....S.....SS.......R.R......................... 244 / 1190 ( 20%)
+........................R.......E.......F........RRRR....RRRR 305 / 1190 ( 25%)
+RR.....E..................F..E............................... 366 / 1190 ( 30%)
+............................................................. 427 / 1190 ( 35%)
+............................R..........E................F.... 488 / 1190 ( 41%)
+....................................E...............F........ 549 / 1190 ( 46%)
+.......R.R.....................RS..........................SS 610 / 1190 ( 51%)
+S.R....................S...RIIIIIIIIIIIIIIIIIIIIR............ 671 / 1190 ( 56%)
+..................................S.......................... 732 / 1190 ( 61%)
+..SSSSSSSSSSSSSSSSSSSS...R.R................................. 793 / 1190 ( 66%)
+.........................................SSSSSSSSSSSSSSSSSSSS 854 / 1190 ( 71%)
+............................................................. 915 / 1190 ( 76%)
+RR.R..R........R..R...........................RR.R....RR..... 976 / 1190 ( 82%)
+.R.R.RR...........................................RRR........ 1037 / 1190 ( 87%)
+.S..............................................R............ 1098 / 1190 ( 92%)
+............................................................. 1159 / 1190 ( 97%)
+............RRR....EEEEEE...... 1190 / 1190 (100%)
+
+Time: *1.48 minutes*, Memory: 68.00 MB
</example>
</div>
diff --git a/slides/xdebug/xdebug-2.6-switch.xml b/slides/xdebug/xdebug-2.6-switch.xml
index 9948f09..a121edf 100644
--- a/slides/xdebug/xdebug-2.6-switch.xml
+++ b/slides/xdebug/xdebug-2.6-switch.xml
@@ -1,5 +1,5 @@
<slide>
-<title>Switch</title>
+<title>PHP 7.1: Switch</title>
<example><![CDATA[<?php
switch ( $a ) {
@@ -12,11 +12,10 @@ switch ( $a ) {
}
]]></example>
-<blurb>PHP 7.1</blurb>
<example>
compiled vars: !0 = $a
line #* E I O op return operands
---------------------------------------------------
+
3 0 E > EXT_STMT
1 CASE ~1 !0, 1
2 > JMPNZ ~1, ->13
diff --git a/slides/xdebug/xdebug-2.6-switch2.xml b/slides/xdebug/xdebug-2.6-switch2.xml
index 2d6cd38..e3f3655 100644
--- a/slides/xdebug/xdebug-2.6-switch2.xml
+++ b/slides/xdebug/xdebug-2.6-switch2.xml
@@ -1,5 +1,5 @@
<slide>
-<title>Switch</title>
+<title>PHP 7.2: Switch</title>
<example><![CDATA[<?php
switch ( $a ) {
@@ -12,13 +12,12 @@ switch ( $a ) {
}
]]></example>
-<blurb>PHP 7.2</blurb>
-<example>
+<example inline="2">
compiled vars: !0 = $a
line #* E I O op return operands
---------------------------------------------------
+
2 0 E > EXT_STMT
- 1 SWITCH_LONG !0, [ 1:->15, 2:->19, 3:->23, 4:->27, 5:->31, 6:->35, ], ->39
+ 1 *SWITCH_LONG !0, [ 1:->15, 2:->19, 3:->23, 4:->27, 5:->31, 6:->35, ], ->39*
3 2 CASE ~1 !0, 1
3 > JMPNZ ~1, ->15
5 4 > CASE ~1 !0, 2
diff --git a/slides/xdebug/xdebug-2.7-new.xml b/slides/xdebug/xdebug-2.7-new.xml
index 57bc077..35aed08 100644
--- a/slides/xdebug/xdebug-2.7-new.xml
+++ b/slides/xdebug/xdebug-2.7-new.xml
@@ -1,5 +1,5 @@
<slide>
-<title>Xdebug 2.7 (beta)</title>
+<title>Xdebug 2.7</title>
<list>
<bullet>Support for PHP 7.3</bullet>
@@ -22,5 +22,5 @@ lightdm─┬─Xorg───3*[{Xorg}]
</example>
</bullet>
</list>
-<blurb class="centre">A few things left to fix…</blurb>
+<blurb class="centre">Release: Early March 2019</blurb>
</slide>
diff --git a/xdebug-phpers19.xml b/xdebug-phpers19.xml
new file mode 100644
index 0000000..17c0ed5
--- /dev/null
+++ b/xdebug-phpers19.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<presentation css="derick.css">
+<topic>Debugging</topic>
+<title>Xdebug</title>
+<event>PHPers Day 2019</event>
+<location>Gdańsk, Poland</location>
+<date>March 2nd, 2019</date>
+<speaker>Derick Rethans</speaker>
+<email>[email protected]</email>
+<twitter>derickr</twitter>
+<url>https://derickrethans.nl/talks.html</url>
+<joindin>https://joind.in/26005</joindin>
+<slide>slides/mongodb/title.xml</slide>
+
+<slide>slides/xdebug/xdebug-2.3-error-munging.xml</slide>
+
+<slide>slides/xdebug/step-debugging.xml</slide>
+<slide>slides/xdebug/debugger-activation.xml</slide>
+<slide>slides/xdebug/debugger-browser-extensions.xml</slide>
+<slide>slides/xdebug/dbgp-connection.xml</slide>
+<slide>slides/xdebug/phpstorm.xml</slide>
+<slide>slides/xdebug/live-demo.xml</slide>
+
+<slide>slides/xdebug/xdebug-2.3-new.xml</slide>
+
+<slide>slides/xdebug/paths.xml</slide>
+
+<slide>slides/xdebug/vld-path-4-code.xml</slide>
+<slide>slides/xdebug/vld-path-4-output.xml</slide>
+
+<slide>slides/xdebug/vld-path-3-code.xml</slide>
+<slide>slides/xdebug/vld-path-3-output.xml</slide>
+<slide>slides/xdebug/vld-path-3-paths.xml</slide>
+
+<slide>slides/xdebug/vld-path-5-wrapup.xml</slide>
+
+<slide>slides/xdebug/xdebug-2.6-new.xml</slide>
+<slide>slides/xdebug/xdebug-2.6-new-dbgp.xml</slide>
+<slide>slides/xdebug/debugger-connection-log.xml</slide>
+<slide>slides/xdebug/xdebug-2.6-switch.xml</slide>
+<slide>slides/xdebug/xdebug-2.6-switch2.xml</slide>
+
+<slide>slides/xdebug/xdebug-2.6-filter1.xml</slide>
+<slide>slides/xdebug/xdebug-2.6-filter1a.xml</slide>
+<slide>slides/xdebug/xdebug-2.6-filter1b.xml</slide>
+<slide>slides/xdebug/xdebug-2.6-filter2.xml</slide>
+
+<slide>slides/xdebug/xdebug-2.7-new.xml</slide>
+
+<slide>slides/xdebug/focus-on-xdebug.xml</slide>
+<slide>slides/xdebug/focus-on-xdebug2.xml</slide>
+<slide>slides/xdebug/focus-on-xdebug3.xml</slide>
+
+<slide>slides/xdebug/donate.xml</slide>
+<slide>slides/xdebug/resources.xml</slide>
+
+</presentation>