J'utilise L'IDE Eclipse pour faire entre autre du déboguage en PHP en mode server PHP CLI Application. Le deboguage dans ce mode est impossible à faire si je ne modifie pas le fichier php.ini situé dans : C:\Wamp64\bin\php\php7.1.1\php.ini car si je le modifie uniquement dans le php.ini par le biais du menu de Wampserver, seul le déboguage en PHP Web Application marchera..
Est-ce que c'est normal? ...puisque dans ce fichier php.ini (C:\Wamp64\bin\php\php7.1.1\php.ini), qu'il est mis: "; ************************************************************** ; ****** DO NOT EDIT THIS FILE **** DO NOT EDIT THIS FILE ****** ; * This file is only use by PHP CLI (Command Line Interface) * ; * that is to say by Wampserver internal PHP scripts * ; * THE CORRECT FILE TO EDIT is Wampmanager Icon->PHP->php.ini * ; * that is wamp/bin/apache/apache2.x.y/bin/php.ini * ; **************************************************************
J'ai trouvé cette solution dans le forum de stack overflow:
"
WAMPServer comes with XDEBUG already installed. But only in the php.ini that is used by Apache.
If you want it available for the PHP CLI then all you have to do is
Open the php.ini using wampmanager->php->php.ini Go to the bottom of the php.ini file Copy the complete [xdebug] section Edit \wamp\bin\php\php{version}\php.ini (whichever version you are using, or all the versions) Paste the [xdebug] section into the bottom of the file Save php.ini
Then it will also work in the PHP CLI
If you want the latest version of XDEBUG then go here [wampserver.aviatechno.net] and download the XDEBUG ADDON Update xDebug 2.5.0 32 bit x86 or Update xDebug 2.5.0 64 bit x64 depending on which version of WAMPServer you installed (32 or 64 bit)
You can also download the latest version of WAMPServer Wampserver update 3.0.8 ADDON while you are there, this just upgrades the WAMPServer control code and not any versions of APACHE,MYSQL or PHP.
But there are also ADDONS available there that will add the latest versions of Apache, Mysql and PHP as well as well as latest versions of phpMyAdmin/Sysinfo and Adminer
I suggest you get rid of whatever version of XDEBUG you downloaded"
Oui, c'est normal. Le fichier wamp/bin/php/phpx.y.z/php.ini ne sert que pour le mode CLI, c'est-à-dire pour les scripts PHP internes à Wampserver et il est aussi normal qu'il n'y ait pas les mêmes paramètres que dans le fichier wamp/bin/php/phpx.y.z/phpForApache.ini qui, en tant que lien symbolique, est utilisé par Apache. Les scripts internes de Wampserver n'ont pas besoin de toutes les options possibles.
La seule modification commune à php.ini et phpForApache.ini est date.timezone.
Maintenant, si vous voulez modifier php.ini CLI, vous le pouvez, mais faites bien attention à faire en sorte que les scripts Wampserver fonctionnent toujours.
Nota : stackoverflow date quelque peu : xdebug en est à la version 2.5.5 (bientôt 2.6.0 pour PHP 7).
J'avais un doute sur la modification de ce fichier. peut-être qu'une mise à jours future de Wampserver eviterait qu'il soit nécessaire de modifier ce fichier de php.ini pour le déboguage PHP CLI, ou en option dans le menu ?
ça a été une longue galère pour trouver la source du problème: je mettais un point d'arrêt et ça ne brakait pas...