<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.jordan-lenuff.com/index.php?action=history&amp;feed=atom&amp;title=Technique%2FPHP%2FXdebug</id>
	<title>Technique/PHP/Xdebug - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jordan-lenuff.com/index.php?action=history&amp;feed=atom&amp;title=Technique%2FPHP%2FXdebug"/>
	<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;action=history"/>
	<updated>2026-04-27T01:55:59Z</updated>
	<subtitle>Historique des révisions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;diff=835&amp;oldid=prev</id>
		<title>Jordan : /* DBGp Proxy Tool */</title>
		<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;diff=835&amp;oldid=prev"/>
		<updated>2020-11-06T15:33:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;DBGp Proxy Tool&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Version du 6 novembre 2020 à 15:33&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l242&quot; &gt;Ligne 242 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 242 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== DBGp Proxy Tool ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== DBGp Proxy Tool ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Cet &lt;/del&gt;outil permet d'agir comme un proxy et de faire suivre la requête de débogage vers les IDE en fonction de la clé IDE utilisée. Ainsi, plusieurs développeurs peuvent utiliser Xdebug sur une même instance de PHP.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;DBGp pour DeBugGer Protocol, cet &lt;/ins&gt;outil permet d'agir comme un proxy et de faire suivre la requête de débogage vers les IDE en fonction de la clé IDE utilisée. Ainsi, plusieurs développeurs peuvent utiliser Xdebug sur une même instance de PHP. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Le dépôt GitHub est celui-ci : https://github.com/derickr/dbgp&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Principe de fonctionnement ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Principe de fonctionnement ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_db:diff::1.12:old-834:rev-835 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jordan</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;diff=834&amp;oldid=prev</id>
		<title>Jordan : /* Création du service dbgpproxy */</title>
		<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;diff=834&amp;oldid=prev"/>
		<updated>2020-11-06T15:31:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Création du service dbgpproxy&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Version du 6 novembre 2020 à 15:31&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l274&quot; &gt;Ligne 274 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 274 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;WorkingDirectory=/local/dbgpproxy&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;WorkingDirectory=/local/dbgpproxy&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ExecStart=/local/dbgpproxy/dbgpproxy -i 0.0.0.0:9001 -s 127.0.0.1:9000&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ExecStart=/local/dbgpproxy/dbgpproxy -i 0.0.0.0:9001 -s 127.0.0.1:9000&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;KillSignal=SIGINT&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RemainAfterExit=no&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Restart=on-failure&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Restart=on-failure&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;RestartSec=5s&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;RestartSec=5s&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_db:diff::1.12:old-811:rev-834 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jordan</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;diff=811&amp;oldid=prev</id>
		<title>Jordan le 3 novembre 2020 à 18:36</title>
		<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;diff=811&amp;oldid=prev"/>
		<updated>2020-11-03T18:36:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;amp;diff=811&amp;amp;oldid=810&quot;&gt;Voir les modifications&lt;/a&gt;</summary>
		<author><name>Jordan</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;diff=810&amp;oldid=prev</id>
		<title>Jordan le 13 octobre 2020 à 12:40</title>
		<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;diff=810&amp;oldid=prev"/>
		<updated>2020-10-13T12:40:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Version du 13 octobre 2020 à 12:40&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Ligne 4 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 4 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Plus d'informations sur le site de l'éditeur :&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Plus d'informations sur le site de l'éditeur :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*https://xdebug.org/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*https://xdebug.org/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Compatibilité PHP==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Sur la page https://xdebug.org/docs/compat#versions de Xdebug, on peut y trouver un tableau de compatibilité.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;En date du 13/10/2020, le tableau est le suivant :&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:[[Fichier:ClipCapIt-201013-143448.PNG]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Installation ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Installation ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_db:diff::1.12:old-139:rev-810 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jordan</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;diff=139&amp;oldid=prev</id>
		<title>Jordan : Page créée avec « == Présentation == Xdebug est une extension pour PHP facilitant le débogage et le développement. Il contient un débogueur fonctionnant clé-en-main avec les IDEs; il m... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Technique/PHP/Xdebug&amp;diff=139&amp;oldid=prev"/>
		<updated>2019-08-13T12:56:36Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « == Présentation == Xdebug est une extension pour PHP facilitant le débogage et le développement. Il contient un débogueur fonctionnant clé-en-main avec les IDEs; il m... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Présentation ==&lt;br /&gt;
Xdebug est une extension pour PHP facilitant le débogage et le développement. Il contient un débogueur fonctionnant clé-en-main avec les IDEs; il met à niveau la fonction var_dump() de PHP; il ajoute des traces de pile pour les notices, les avertissements, les erreurs et les exceptions; il comporte des fonctionnalités pour enregistrer chaque appel de fonction et chaque attribution de variable sur disque; il contient un profileur; et il fournit une fonctionnalité de couverture de code à utiliser avec PHPUnit.&lt;br /&gt;
&lt;br /&gt;
Plus d'informations sur le site de l'éditeur :&lt;br /&gt;
*https://xdebug.org/&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
=== Côté serveur ===&lt;br /&gt;
==== Pour PHP 5 ====&lt;br /&gt;
Télécharger la dernière version de Xdebug compatible avec la version 5 de PHP :&lt;br /&gt;
 wget https://xdebug.org/files/xdebug-2.5.5.tgz&lt;br /&gt;
&lt;br /&gt;
Par exemple, sur un serveur, PHP 5 a été installé depuis les sources et elles sont disponibles dans le dossier &amp;lt;code&amp;gt;/local/builds/php-5.6.40&amp;lt;/code&amp;gt;. De ce fait, les seuls prérequis à respecter sont ''automake'' et ''autoconf''. Vérifier leur présence avec la commande suivante :&lt;br /&gt;
 rpm -qa|grep -E &amp;quot;automake|autoconf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Exemple de retour :&lt;br /&gt;
 automake-1.16.1-4.1.noarch&lt;br /&gt;
 autoconf-2.69-16.5.noarch&lt;br /&gt;
&lt;br /&gt;
Décompresser Xdebug :&lt;br /&gt;
 tar -xvzf xdebug-2.5.5.tgz&lt;br /&gt;
&lt;br /&gt;
Déplacer le dossier Xdebug précédemment décompressé dans le dossier &amp;lt;code&amp;gt;/local/builds&amp;lt;/code&amp;gt; :&lt;br /&gt;
 mv xdebug-2.5.5 /local/builds/xdebug-2.5.5_for_php5&lt;br /&gt;
&lt;br /&gt;
Se rendre dans le dossier et lancer &amp;lt;code&amp;gt;phpize&amp;lt;/code&amp;gt; :&lt;br /&gt;
 cd /local/builds/xdebug-2.5.5_for_php5&lt;br /&gt;
 phpize5&lt;br /&gt;
&lt;br /&gt;
Exemple de retour :&lt;br /&gt;
 Configuring for:&lt;br /&gt;
 PHP Api Version:         20131106&lt;br /&gt;
 Zend Module Api No:      20131226&lt;br /&gt;
 Zend Extension Api No:   220131226&lt;br /&gt;
&lt;br /&gt;
Lancer la configuration de la compilation de l'extension Xdebug :&lt;br /&gt;
 ./configure --with-php-config=/local/php/php5/bin/php-config&lt;br /&gt;
&lt;br /&gt;
Exemple de fin de retour :&lt;br /&gt;
 ...&lt;br /&gt;
 configure: creating ./config.status&lt;br /&gt;
 config.status: creating config.h&lt;br /&gt;
&lt;br /&gt;
Lancer la compilation :&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
Exemple de fin de retour :&lt;br /&gt;
 ...&lt;br /&gt;
 Build complete.&lt;br /&gt;
 Don't forget to run 'make test'.&lt;br /&gt;
&lt;br /&gt;
Copier l'extension fraîchement compilée vers le dossier d'extension de PHP 5 :&lt;br /&gt;
 cp modules/xdebug.so /local/php/php5/lib64/extensions/no-debug-non-zts-20131226/&lt;br /&gt;
&lt;br /&gt;
Editer le fichier &amp;lt;code&amp;gt;/local/php/php5/lib64/php.ini&amp;lt;/code&amp;gt; et y ajouter la ligne suivante :&lt;br /&gt;
 zend_extension = /local/php/php5/lib64/extensions/no-debug-non-zts-20131226/xdebug.so&lt;br /&gt;
&lt;br /&gt;
Relancer PHP 5 :&lt;br /&gt;
 systemctl restart php5-fpm.service&lt;br /&gt;
&lt;br /&gt;
==== Pour PHP 7 ====&lt;br /&gt;
===== Obtenir les informations PHP =====&lt;br /&gt;
Se connecter en SSH sur le serveur désiré et lancer la commande suivante :&lt;br /&gt;
 php7 -i&lt;br /&gt;
&lt;br /&gt;
Cela permet d'obtenir les informations relatives à l'instance de PHP utilisée. Les informations remontées sont les mêmes que celles obtenues au travers d'une page web avec un &amp;lt;code&amp;gt;phpinfo();&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===== Aller sur le site Xdebug =====&lt;br /&gt;
Copier l'intégralité du retour obtenu, se rendre sur la page https://xdebug.org/wizard.php, coller les données copiées dans le cadre prévu à cet effet et cliquer sur ''Analyse my phpinfo() output''.&lt;br /&gt;
&lt;br /&gt;
Cela permet aux serveurs de Xdebug d'analyser la configuration actuelle de l'instance de PHP utilisée sur le serveur et de donner des directives personnalisées pour installer Xdebug.&lt;br /&gt;
&lt;br /&gt;
En l'occurrence, voici le retour obtenu :&lt;br /&gt;
:'''Summary'''&lt;br /&gt;
:*'''Xdebug installed:''' no&lt;br /&gt;
:*'''Server API:''' Command Line Interface&lt;br /&gt;
:*'''Windows:''' no&lt;br /&gt;
:*'''Zend Server:''' no&lt;br /&gt;
:*'''PHP Version:''' 7.3.4&lt;br /&gt;
:*'''Zend API nr:''' 320180731&lt;br /&gt;
:*'''PHP API nr:''' 20180731&lt;br /&gt;
:*'''Debug Build:''' no&lt;br /&gt;
:*'''Thread Safe Build:''' no&lt;br /&gt;
:*'''OPcache Loaded:''' no&lt;br /&gt;
:*'''Configuration File Path:''' /local/php/php7/lib64&lt;br /&gt;
:*'''Configuration File:''' /local/php/php7/lib64/php.ini&lt;br /&gt;
:*'''Extensions directory:''' /local/php/php7/lib64/extensions/no-debug-non-zts-20180731&lt;br /&gt;
:'''Instructions'''&lt;br /&gt;
:#Download [http://xdebug.org/files/xdebug-2.7.2.tgz xdebug-2.7.2.tgz]&lt;br /&gt;
:#Install the pre-requisites for compiling PHP extensions. These packages are often called 'php-dev', or 'php-devel', 'automake' and 'autoconf'.&lt;br /&gt;
:#Unpack the downloaded file with &amp;lt;code&amp;gt;tar -xvzf xdebug-2.7.2.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
:#Run: &amp;lt;code&amp;gt;cd xdebug-2.7.2&amp;lt;/code&amp;gt;&lt;br /&gt;
:#Run: &amp;lt;code&amp;gt;phpize&amp;lt;/code&amp;gt; (See the [https://xdebug.org/docs/faq#phpize FAQ] if you don't have &amp;lt;code&amp;gt;phpize&amp;lt;/code&amp;gt;).&lt;br /&gt;
:#:&lt;br /&gt;
:#:As part of its output it should show:&lt;br /&gt;
:#:&amp;lt;pre&amp;gt;Configuring for:&amp;amp;#10;...&amp;amp;#10;Zend Module Api No:      20180731&amp;amp;#10;Zend Extension Api No:   320180731&amp;lt;/pre&amp;gt;&lt;br /&gt;
:#:If it does not, you are using the wrong &amp;lt;code&amp;gt;phpize&amp;lt;/code&amp;gt;. Please follow [https://xdebug.org/docs/faq#custom-phpize this FAQ entry] and skip the next step.&lt;br /&gt;
:#Run: &amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;&lt;br /&gt;
:#Run: &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
:#Run: &amp;lt;code&amp;gt;cp modules/xdebug.so /local/php/php7/lib64/extensions/no-debug-non-zts-20180731&amp;lt;/code&amp;gt;&lt;br /&gt;
:#Edit &amp;lt;code&amp;gt;/local/php/php7/lib64/php.ini&amp;lt;/code&amp;gt; and add the line&lt;br /&gt;
::&amp;lt;code&amp;gt;zend_extension = /local/php/php7/lib64/extensions/no-debug-non-zts-20180731/xdebug.so&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Suivre les instructions =====&lt;br /&gt;
Télécharger le paquet Xdebug proposé :&lt;br /&gt;
 wget http://xdebug.org/files/xdebug-2.7.2.tgz&lt;br /&gt;
&lt;br /&gt;
Par exemple, sur un serveur, PHP 7 a été installé depuis les sources et elles sont disponibles dans le dossier &amp;lt;code&amp;gt;/local/builds/php-7.3.4&amp;lt;/code&amp;gt;. De ce fait, les seuls prérequis à respecter sont automake et autoconf. Vérifier leur présence avec la commande suivante :&lt;br /&gt;
 rpm -qa|grep -E &amp;quot;automake|autoconf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Exemple de retour :&lt;br /&gt;
 automake-1.16.1-4.1.noarch&lt;br /&gt;
 autoconf-2.69-16.5.noarch&lt;br /&gt;
&lt;br /&gt;
Décompresser Xdebug :&lt;br /&gt;
 tar -xvzf xdebug-2.7.2.tgz&lt;br /&gt;
&lt;br /&gt;
Déplacer le dossier Xdebug précédemment décompressé dans le dossier &amp;lt;code&amp;gt;/local/builds&amp;lt;/code&amp;gt; :&lt;br /&gt;
 mv xdebug-2.7.2 /local/builds/xdebug-2.7.2_for_php7&lt;br /&gt;
&lt;br /&gt;
Se rendre dans le dossier et lancer &amp;lt;code&amp;gt;phpize&amp;lt;/code&amp;gt; :&lt;br /&gt;
 cd /local/builds/xdebug-2.7.2_for_php7&lt;br /&gt;
 phpize7&lt;br /&gt;
&lt;br /&gt;
Exemple de retour :&lt;br /&gt;
 Configuring for:&lt;br /&gt;
 PHP Api Version:         20180731&lt;br /&gt;
 Zend Module Api No:      20180731&lt;br /&gt;
 Zend Extension Api No:   320180731&lt;br /&gt;
&lt;br /&gt;
Lancer la configuration de la compilation de l'extension Xdebug :&lt;br /&gt;
 ./configure --with-php-config=/local/php/php7/bin/php-config&lt;br /&gt;
&lt;br /&gt;
Exemple de fin de retour :&lt;br /&gt;
 ...&lt;br /&gt;
 configure: creating ./config.status&lt;br /&gt;
 config.status: creating config.h&lt;br /&gt;
&lt;br /&gt;
Lancer la compilation :&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
Exemple de fin de retour :&lt;br /&gt;
 ...&lt;br /&gt;
 Build complete.&lt;br /&gt;
 Don't forget to run 'make test'.&lt;br /&gt;
&lt;br /&gt;
Copier l'extension fraîchement compilée vers le dossier d'extension de PHP 7 :&lt;br /&gt;
 cp modules/xdebug.so /local/php/php7/lib64/extensions/no-debug-non-zts-20180731&lt;br /&gt;
&lt;br /&gt;
Editer le fichier &amp;lt;code&amp;gt;/local/php/php7/lib64/php.ini&amp;lt;/code&amp;gt; et y ajouter la ligne suivante :&lt;br /&gt;
 zend_extension = /local/php/php7/lib64/extensions/no-debug-non-zts-20180731/xdebug.so&lt;br /&gt;
&lt;br /&gt;
Relancer PHP 7 :&lt;br /&gt;
 systemctl restart php7-fpm.service&lt;br /&gt;
&lt;br /&gt;
==== Configuration complémentaire ====&lt;br /&gt;
Un des intérêt de ''Xdebug'' est de pouvoir s'y connecter à distance depuis un IDE. Pour ce faire, ajouter les options suivantes dans le &amp;lt;code&amp;gt;php.ini&amp;lt;/code&amp;gt; de l'instance PHP désirée :&lt;br /&gt;
 xdebug.remote_port=9000&lt;br /&gt;
 xdebug.remote_enable=1&lt;br /&gt;
 xdebug.idekey=&amp;quot;PHPSTORM&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Pour les instances PHP embarquées en tant que module sous Apache, redémarrer Apache (le graceful restera sans effet). Pour les instances PHP lancées via PHP-FM, redémarrer PHP-FPM.&lt;/div&gt;</summary>
		<author><name>Jordan</name></author>
		
	</entry>
</feed>