Installation de XDebug pour wanpserver
======================================
1. Arrêter et quitter Wampserver!!!!
---

2. Télécharger xdebug sur : http://xdebug.org/download.php
---
Par exemple, pour php 5.3.58 il faut prendre xdebug 5.3 après cela dépends
de votre installation ...
Exemple qui fonctionne :
php 5.2.6 : php_xdebug-2.0.5-5.2.dll
php 5.3.0 : php_xdebug-2.0.5-5.3-vc6.dll

3. Aller dans le dossier de wampserver (de base : C:\wamp\) et copier le
---
fichier xdebug.php dans le dossier scripts

4. Aller dans *chaque* dossier bin/php/php{VERSION}/
---
4.1 copier y la bonne version de xdebug
---
4.2 modifier le fichier phpForApache.ini et à la fin de celui-ci,
---
ajouter ce qui suit (en adapatant le c:/wamp a votre installation)

[XDebug]
;#xdebug_debug=0
;#xdebug_trace=0
;#xdebug_remote=0
;#xdebug_profiler=0
;zend_extension="c:/wamp/bin/php/php5.3.0/php_xdebug.dll"
;xdebug.default_enable = on
;xdebug.remote_enable=on
;xdebug.remote_host=localhost
;xdebug.remote_port=9000
;xdebug.remote_handler="dbgp"
;xdebug.profiler_enable=1
;xdebug.profiler_output_dir="c:/wamp/tmp/"
;xdebug.profiler_output_name = cachegrind.out.%H%R
;xdebug.show_local_vars = 1
;xdebug.auto_trace = 1
;xdebug.collect_return = 1
;xdebug.trace_output_dir = "c:/wamp/tmp/"
;xdebug.trace_output_name = trace.%H

4.3 Modifier la ligne 
---
;zend_extension="c:/wamp/bin/php/php5.3.0/php_xdebug.dll"
Si vous êtes avant php 5.3, remplacer la par 
;zend_extension_ts="c:/wamp/bin/php/php5.2.6/php_xdebug.dll"
Et modifier, bien entendu la version de php ...

5. Ouvrez le fichier wampserver C:\wamp\wampmanager.tpl
---
5.1 A la fin (avant EOTPL;) ajouter

[php_xdebug]
Type: separator; Caption: "XDebug"
Type: item; Caption: "XDebug debug"; Action: multi; Actions: php_xdebug_debug_on
Type: item; Caption: "XDebug remote"; Action: multi; Actions: php_xdebug_remote_on
Type: item; Caption: "XDebug trace"; Action: multi; Actions: php_xdebug_trace_on
Type: item; Caption: "XDebug profiler"; Action: multi; Actions: php_xdebug_profiler_on

[php_xdebug_remote_on]
Action: service; Service: wampapache; ServiceAction: stop; Flags: waituntilterminated
Action: run; FileName: "${c_phpExe}";Parameters: "xdebug.php remote on";WorkingDir: "${c_installDir}/scripts"; Flags: waituntilterminated
Action: run; FileName: "net"; Parameters: "start wampapache"; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices;
Action: readconfig;

[php_xdebug_remote_off]
Action: service; Service: wampapache; ServiceAction: stop; Flags: waituntilterminated
Action: run; FileName: "${c_phpExe}";Parameters: "xdebug.php remote off";WorkingDir: "${c_installDir}/scripts"; Flags: waituntilterminated
Action: run; FileName: "net"; Parameters: "start wampapache"; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices;
Action: readconfig;

[php_xdebug_trace_on]
Action: service; Service: wampapache; ServiceAction: stop; Flags: waituntilterminated
Action: run; FileName: "${c_phpExe}";Parameters: "xdebug.php trace on";WorkingDir: "${c_installDir}/scripts"; Flags: waituntilterminated
Action: run; FileName: "net"; Parameters: "start wampapache"; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices;
Action: readconfig;

[php_xdebug_trace_off]
Action: service; Service: wampapache; ServiceAction: stop; Flags: waituntilterminated
Action: run; FileName: "${c_phpExe}";Parameters: "xdebug.php trace off";WorkingDir: "${c_installDir}/scripts"; Flags: waituntilterminated
Action: run; FileName: "net"; Parameters: "start wampapache"; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices;
Action: readconfig;

[php_xdebug_profiler_on]
Action: service; Service: wampapache; ServiceAction: stop; Flags: waituntilterminated
Action: run; FileName: "${c_phpExe}";Parameters: "xdebug.php profiler on";WorkingDir: "${c_installDir}/scripts"; Flags: waituntilterminated
Action: run; FileName: "net"; Parameters: "start wampapache"; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices;
Action: readconfig;

[php_xdebug_profiler_off]
Action: service; Service: wampapache; ServiceAction: stop; Flags: waituntilterminated
Action: run; FileName: "${c_phpExe}";Parameters: "xdebug.php profiler off";WorkingDir: "${c_installDir}/scripts"; Flags: waituntilterminated
Action: run; FileName: "net"; Parameters: "start wampapache"; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices;
Action: readconfig;

[php_xdebug_debug_on]
Action: service; Service: wampapache; ServiceAction: stop; Flags: waituntilterminated
Action: run; FileName: "${c_phpExe}";Parameters: "xdebug.php debug on";WorkingDir: "${c_installDir}/scripts"; Flags: waituntilterminated
Action: run; FileName: "net"; Parameters: "start wampapache"; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices;
Action: readconfig;

[php_xdebug_debug_off]
Action: service; Service: wampapache; ServiceAction: stop; Flags: waituntilterminated
Action: run; FileName: "${c_phpExe}";Parameters: "xdebug.php debug off";WorkingDir: "${c_installDir}/scripts"; Flags: waituntilterminated
Action: run; FileName: "net"; Parameters: "start wampapache"; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices;
Action: readconfig;

5.2 Chercher 
---
Type: submenu; Caption: "${w_phpExtensions}"; SubMenu: php_ext;  Glyph: 3
et à la suite ajouter
Type: submenu; Caption: "XDebug"; SubMenu: php_xdebug;  Glyph: 3

6. Relancer wampserver
---
Un nouveau menu, dans la sous menu PHP est présent.
