Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 14/03/2024, à 12:26

samcelia

[RÉSOLU] Xdebug compilé ne marche plus

Bonjour,

configuration:
- ubuntu 22.04
- php 8.1
- IDE: VSCode

1 - J'ai suivi ce tuto installation Xdebug pour installer Xdebug (j'aurais pas du)
installer xdeug avec netbeans sous ubuntu
J'ai donc utilisé une version compilée de Xdebug ce que propose Xdebug
2 - Par inadvertance, j'ai installé le paquet php-debug. Puis je l'ai désinstallé. J'ai du vider certains fichiers.
Voici mes configurations

php -v:

gerard@gerard-ThinkCentre-M700:~$ php  -v
PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans
    with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologies
gerard@gerard-ThinkCentre-M700:~$ 

php -ini:

gerard@gerard-ThinkCentre-M700:~$ php --ini
Configuration File (php.ini) Path: /etc/php/8.1/cli
Loaded Configuration File:         /etc/php/8.1/cli/php.ini
Scan for additional .ini files in: /etc/php/8.1/cli/conf.d
Additional .ini files parsed:      /etc/php/8.1/cli/conf.d/10-mysqlnd.ini,
/etc/php/8.1/cli/conf.d/10-opcache.ini,
/etc/php/8.1/cli/conf.d/10-pdo.ini,
....

/etc/php/8.1/cli/php.ini:

[xdebug]
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.client_port=9003
xdebug.log=/tmp/xdebug.log

/etc/php/8.1/apache2/conf.d/20-xdebug.ini :

zend_extension=xdebug.so
xdebug.mode = develop, debug
xdebug.start_with_request = yes
xdebug.log = /tmp/xdebug.log
xdebug.client_host = "localhost"
xdebug.client_port = 9003

Jai hésité à utiliser le fichier /etc/php/8.1/apache2/php.ini
plutôt que /etc/php/8.1/apache2/conf.d/20-xdebug.ini (ci-dessus), mais Xdebug conseille ce fichier

Sur Vscode, j'ai installé PHP Debug installé launcj.json:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9003
        },
        {
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "program": "${file}",
            "cwd": "${fileDirname}"
        }
    ]
}

Et voici le contenu de la page WEB de Xdebug

Enabled Features
(through 'xdebug.mode' setting)
Feature	Enabled/Disabled	Docs
Development Helpers	✘ disabled	?
Coverage	✘ disabled	?
GC Stats	✘ disabled	?
Profiler	✘ disabled	?
Step Debugger	✔ enabled	?
Tracing	✘ disabled	?
Optional Features
Compressed File Support 	no
Clock Source 	clock_gettime
Diagnostic Log
No messages
Step Debugging	Docs
Debugger	Active	?
Connected Client	localhost:9003	 
DBGp Settings
Max Children	32	 
Max Data	1024	 
Max Depth	1	 
Show Hidden Properties	No	 
Extended Properties	No	 
Notifications	No	 
Resolved Breakpoints	No	 
Breakpoint Details	No	 
PHP
Build Configuration
Version (Run Time) 	8.1.2-1ubuntu2.14
Version (Compile Time) 	8.1.1
Debug Build 	no
Thread Safety 	disabled
Settings
Configuration File (php.ini) Path 	/etc/php/8.1/cli
Loaded Configuration File 	/etc/php/8.1/apache2/php.ini
Scan this dir for additional .ini files 	/etc/php/8.1/apache2/conf.d
Additional .ini files parsed 	/etc/php/8.1/apache2/conf.d/10-mysqlnd.ini, /etc/php/8.1/apache2/conf.d/10-opcache.ini, /etc/php/8.1/apache2/conf.d/10-pdo.ini, /etc/php/8.1/apache2/conf.d/15-xml.ini, /etc/php/8.1/apache2/conf.d/20-apcu.ini, /etc/php/8.1/apache2/conf.d/20-calendar.ini, /etc/php/8.1/apache2/conf.d/20-ctype.ini, /etc/php/8.1/apache2/conf.d/20-curl.ini, /etc/php/8.1/apache2/conf.d/20-dom.ini, /etc/php/8.1/apache2/conf.d/20-exif.ini, /etc/php/8.1/apache2/conf.d/20-ffi.ini, /etc/php/8.1/apache2/conf.d/20-fileinfo.ini, /etc/php/8.1/apache2/conf.d/20-ftp.ini, /etc/php/8.1/apache2/conf.d/20-gd.ini, /etc/php/8.1/apache2/conf.d/20-gettext.ini, /etc/php/8.1/apache2/conf.d/20-iconv.ini, /etc/php/8.1/apache2/conf.d/20-intl.ini, /etc/php/8.1/apache2/conf.d/20-mbstring.ini, /etc/php/8.1/apache2/conf.d/20-mysqli.ini, /etc/php/8.1/apache2/conf.d/20-pdo_mysql.ini, /etc/php/8.1/apache2/conf.d/20-pdo_sqlite.ini, /etc/php/8.1/apache2/conf.d/20-phar.ini, /etc/php/8.1/apache2/conf.d/20-posix.ini, /etc/php/8.1/apache2/conf.d/20-readline.ini, /etc/php/8.1/apache2/conf.d/20-shmop.ini, /etc/php/8.1/apache2/conf.d/20-simplexml.ini, /etc/php/8.1/apache2/conf.d/20-sockets.ini, /etc/php/8.1/apache2/conf.d/20-sqlite3.ini, /etc/php/8.1/apache2/conf.d/20-sysvmsg.ini, /etc/php/8.1/apache2/conf.d/20-sysvsem.ini, /etc/php/8.1/apache2/conf.d/20-sysvshm.ini, /etc/php/8.1/apache2/conf.d/20-tokenizer.ini, /etc/php/8.1/apache2/conf.d/20-xdebug.ini, /etc/php/8.1/apache2/conf.d/20-xmlreader.ini, /etc/php/8.1/apache2/conf.d/20-xmlwriter.ini, /etc/php/8.1/apache2/conf.d/20-xsl.ini, /etc/php/8.1/apache2/conf.d/20-zip.ini
Directive	Local Value	Master Value	Docs
xdebug.mode	debug	debug	?
xdebug.start_with_request	yes	yes	?
xdebug.start_upon_error	default	default	?
xdebug.output_dir	/tmp	/tmp	?
xdebug.use_compression	0	0	?
xdebug.trigger_value	no value	no value	?
xdebug.file_link_format	no value	no value	?
xdebug.filename_format	no value	no value	?
xdebug.log	/tmp/xdebug.log	/tmp/xdebug.log	?
xdebug.log_level	7	7	?
xdebug.var_display_max_children	128	128	?
xdebug.var_display_max_data	512	512	?
xdebug.var_display_max_depth	3	3	?
xdebug.max_nesting_level	256	256	?
xdebug.cli_color	0	0	?
xdebug.force_display_errors	Off	Off	?
xdebug.force_error_reporting	0	0	?
xdebug.halt_level	0	0	?
xdebug.max_stack_frames	-1	-1	?
xdebug.show_error_trace	Off	Off	?
xdebug.show_exception_trace	Off	Off	?
xdebug.show_local_vars	Off	Off	?
xdebug.dump.COOKIE	no value	no value	?
xdebug.dump.ENV	no value	no value	?
xdebug.dump.FILES	no value	no value	?
xdebug.dump.GET	no value	no value	?
xdebug.dump.POST	no value	no value	?
xdebug.dump.REQUEST	no value	no value	?
xdebug.dump.SERVER	no value	no value	?
xdebug.dump.SESSION	no value	no value	?
xdebug.dump_globals	On	On	?
xdebug.dump_once	On	On	?
xdebug.dump_undefined	Off	Off	?
xdebug.profiler_output_name	cachegrind.out.%p	cachegrind.out.%p	?
xdebug.profiler_append	Off	Off	?
xdebug.cloud_id	no value	no value	?
xdebug.client_host	localhost	localhost	?
xdebug.client_port	9003	9003	?
xdebug.discover_client_host	Off	Off	?
xdebug.client_discovery_header	no value	no value	?
xdebug.idekey	no value	no value	?
xdebug.connect_timeout_ms	200	200	?
xdebug.scream	Off	Off	?
xdebug.gc_stats_output_name	gcstats.%p	gcstats.%p	?
xdebug.trace_output_name	trace.%c	trace.%c	?
xdebug.trace_format	0	0	?
xdebug.trace_options	0	0	?
xdebug.collect_assignments	Off	Off	?
xdebug.collect_return	Off	Off	?

Dernière modification par samcelia (Le 16/03/2024, à 01:10)

Hors ligne

#2 Le 14/03/2024, à 18:22

iznobe

Re : [RÉSOLU] Xdebug compilé ne marche plus

Bonjour , il te suffit de regarder ce qui a été enlevé par ta commande avec

cat  /var/log/apt/history.log

puis de reinstaller les paquets desirés bien sur .

une desinstallation de paquets n ' enleve generalement pas de fichiers appartenant à d' autres paquets .

Dernière modification par iznobe (Le 14/03/2024, à 18:23)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#3 Le 14/03/2024, à 20:15

samcelia

Re : [RÉSOLU] Xdebug compilé ne marche plus

J'avais oublié de mettre le lien ci-dessus.
Alors, j'installé Xdebug (par compilation d'après Installation de XdebugInstallation de Xdebug
Ça marchait avnt que j'installe le paquet  php8.1-xdebug. Je me suis retrouvé avec 2 Xdebug!
Plus rien ne marchait. J'ai désinstallé le paquet. Je pense que ma manip a foutu le bordel.
J'ai nettoyé 1 à 2 fichiers. Mais là je suis bloqué.

Je ne comprends pas vraiment ce que tu me propose.

Hors ligne

#4 Le 14/03/2024, à 21:20

iznobe

Re : [RÉSOLU] Xdebug compilé ne marche plus

samcelia a écrit :

Je ne comprends pas vraiment ce que tu me propose.

de regardé dans l' historique des commandes de apt ce qu ' a precisément fait la desinstallation de ce paquet .


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#5 Le 14/03/2024, à 21:33

samcelia

Re : [RÉSOLU] Xdebug compilé ne marche plus

c'est moi qui l'ai désinstallé. J'avais déjà un d'installé par compilation.
je viens même de découvrir que:
- Xdebug (compilation) était installé. Mais je me demande si je ne l'avais pas désinstallé
- php8.1-xdebug était installé
- et j'ai installé php-xdebug puis je l'ai désinstallé

Dernière modification par samcelia (Le 14/03/2024, à 21:35)

Hors ligne

#6 Le 14/03/2024, à 22:13

iznobe

Re : [RÉSOLU] Xdebug compilé ne marche plus

si tu ne sais plus ce que tu as deinstallé et ce qui est installé , ni ce qui etait installé avant , et que tu ne donnes pas le retour , je vois pas trop quoi te dire à part que je ne pourrais pas t ' aider .
si tu es sur(e) que le probleme est arrivé lors de :

- et j'ai installé php-xdebug puis je l'ai désinstallé

montre ce fichu retour , qu ' on voit si y a trace dans le log et si oui , ce qu' il a fait precisément .


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#7 Le 14/03/2024, à 23:01

samcelia

Re : [RÉSOLU] Xdebug compilé ne marche plus

J'ai fait des modifications.
php - v, php -m, phpinfo et Xdebuginfos donnent de bons résultats.
seul, xdebug.log renvoie des erreurs.

[6655] Log opened at 2024-03-14 19:22:16.076252
[6655] [Step Debug] INFO: Connecting to configured address/port: localhost:9003.
[6655] [Step Debug] WARN: Creating socket for 'localhost:9003', poll success, but error: Operation now in progress (29).
[6655] [Step Debug] ERR: Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(
[6655] Log closed at 2024-03-14 19:22:16.077318

[6656] Log opened at 2024-03-14 19:22:16.091521
[6656] [Step Debug] INFO: Connecting to configured address/port: localhost:9003.
[6656] [Step Debug] WARN: Creating socket for 'localhost:9003', poll success, but error: Operation now in progress (29).
[6656] [Step Debug] ERR: Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(
[6656] Log closed at 2024-03-14 19:22:16.092372

[9062] Log opened at 2024-03-14 20:11:25.987130
[9062] [Step Debug] INFO: Connecting to configured address/port: localhost:9003.
[9062] [Step Debug] WARN: Creating socket for 'localhost:9003', poll success, but error: Operation now in progress (29).
[9062] [Step Debug] ERR: Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(
[9062] Log closed at 2024-03-14 20:11:25.988229

[9063] Log opened at 2024-03-14 20:11:25.994390
[9063] [Step Debug] INFO: Connecting to configured address/port: localhost:9003.
[9063] [Step Debug] WARN: Creating socket for 'localhost:9003', poll success, but error: Operation now in progress (29).
[9063] [Step Debug] ERR: Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(
[9063] Log closed at 2024-03-14 20:11:25.995178

[9284] Log opened at 2024-03-14 20:12:04.461387
[9284] [Step Debug] INFO: Connecting to configured address/port: localhost:9003.
[9284] [Step Debug] WARN: Creating socket for 'localhost:9003', poll success, but error: Operation now in progress (29).
[9284] [Step Debug] ERR: Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(
[9284] Log closed at 2024-03-14 20:12:04.462179

[9285] Log opened at 2024-03-14 20:12:04.509988
[9285] [Step Debug] INFO: Connecting to configured address/port: localhost:9003.
[9285] [Step Debug] WARN: Creating socket for 'localhost:9003', poll success, but error: Operation now in progress (29).
[9285] [Step Debug] ERR: Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(
[9285] Log closed at 2024-03-14 20:12:04.510698

[10347] Log opened at 2024-03-14 20:23:01.354840
[10347] [Step Debug] INFO: Connecting to configured address/port: localhost:9003.
[10347] [Step Debug] WARN: Creating socket for 'localhost:9003', poll success, but error: Operation now in progress (29).
[10347] [Step Debug] ERR: Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(
[10347] Log closed at 2024-03-14 20:23:01.356652

[10348] Log opened at 2024-03-14 20:23:01.371857
[10348] [Step Debug] INFO: Connecting to configured address/port: localhost:9003.
[10348] [Step Debug] WARN: Creating socket for 'localhost:9003', poll success, but error: Operation now in progress (29).
[10348] [Step Debug] ERR: Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(
[10348] Log closed at 2024-03-14 20:23:01.372540

[10765] Log opened at 2024-03-14 20:24:36.057642
[10765] [Step Debug] INFO: Connecting to configured address/port: localhost:9004.
[10765] [Step Debug] WARN: Creating socket for 'localhost:9004', poll success, but error: Operation now in progress (29).
[10765] [Step Debug] ERR: Could not connect to debugging client. Tried: localhost:9004 (through xdebug.client_host/xdebug.client_port) :-(
[10765] Log closed at 2024-03-14 20:24:36.058404

[10766] Log opened at 2024-03-14 20:24:36.075528
[10766] [Step Debug] INFO: Connecting to configured address/port: localhost:9004.
[10766] [Step Debug] WARN: Creating socket for 'localhost:9004', poll success, but error: Operation now in progress (29).
[10766] [Step Debug] ERR: Could not connect to debugging client. Tried: localhost:9004 (through xdebug.client_host/xdebug.client_port) :-(
[10766] Log closed at 2024-03-14 20:24:36.076134

Donc l'erreur viendrait de la liaison entre Xdebug et VSCode.

Voici cat  /var/log/apt/history.log

gerard@gerard-ThinkCentre-M700:/tmp$ cat  /var/log/apt/history.log

Start-Date: 2024-03-01  09:38:59
Commandline: /usr/bin/unattended-upgrade
Upgrade: less:amd64 (590-1ubuntu0.22.04.1, 590-1ubuntu0.22.04.2)
End-Date: 2024-03-01  09:39:01

Start-Date: 2024-03-01  09:39:04
Commandline: /usr/bin/unattended-upgrade
Upgrade: openjdk-17-jdk:amd64 (17.0.9+9-1~22.04, 17.0.10+7-1~22.04.1), openjdk-17-jre:amd64 (17.0.9+9-1~22.04, 17.0.10+7-1~22.04.1), openjdk-17-jdk-headless:amd64 (17.0.9+9-1~22.04, 17.0.10+7-1~22.04.1), openjdk-17-jre-headless:amd64 (17.0.9+9-1~22.04, 17.0.10+7-1~22.04.1)
End-Date: 2024-03-01  09:39:07

Start-Date: 2024-03-01  09:39:11
Commandline: /usr/bin/unattended-upgrade
Upgrade: libbinutils:amd64 (2.38-4ubuntu2.5, 2.38-4ubuntu2.6), binutils-x86-64-linux-gnu:amd64 (2.38-4ubuntu2.5, 2.38-4ubuntu2.6), libctf0:amd64 (2.38-4ubuntu2.5, 2.38-4ubuntu2.6), binutils-common:amd64 (2.38-4ubuntu2.5, 2.38-4ubuntu2.6), binutils:amd64 (2.38-4ubuntu2.5, 2.38-4ubuntu2.6)
End-Date: 2024-03-01  09:39:13

Start-Date: 2024-03-01  09:39:16
Commandline: /usr/bin/unattended-upgrade
Upgrade: libctf-nobfd0:amd64 (2.38-4ubuntu2.5, 2.38-4ubuntu2.6)
End-Date: 2024-03-01  09:39:16

Start-Date: 2024-03-01  09:39:20
Commandline: /usr/bin/unattended-upgrade
Upgrade: libde265-0:amd64 (1.0.8-1ubuntu0.1, 1.0.8-1ubuntu0.2)
End-Date: 2024-03-01  09:39:21

Start-Date: 2024-03-01  09:39:24
Commandline: /usr/bin/unattended-upgrade
Upgrade: postgresql-14:amd64 (14.10-0ubuntu0.22.04.1, 14.11-0ubuntu0.22.04.1)
End-Date: 2024-03-01  09:39:29

Start-Date: 2024-03-01  09:39:33
Commandline: /usr/bin/unattended-upgrade
Upgrade: libuv1-dev:amd64 (1.43.0-1, 1.43.0-1ubuntu0.1), libuv1:amd64 (1.43.0-1, 1.43.0-1ubuntu0.1)
End-Date: 2024-03-01  09:39:34

Start-Date: 2024-03-01  09:39:37
Commandline: /usr/bin/unattended-upgrade
Upgrade: dnsmasq-base:amd64 (2.86-1.1ubuntu0.5, 2.90-0ubuntu0.22.04.1)
End-Date: 2024-03-01  09:39:38

Start-Date: 2024-03-01  09:39:41
Commandline: /usr/bin/unattended-upgrade
Upgrade: openjdk-11-jdk:amd64 (11.0.21+9-0ubuntu1~22.04, 11.0.22+7-0ubuntu2~22.04.1), openjdk-11-jre:amd64 (11.0.21+9-0ubuntu1~22.04, 11.0.22+7-0ubuntu2~22.04.1), openjdk-11-jre-headless:amd64 (11.0.21+9-0ubuntu1~22.04, 11.0.22+7-0ubuntu2~22.04.1), openjdk-11-jdk-headless:amd64 (11.0.21+9-0ubuntu1~22.04, 11.0.22+7-0ubuntu2~22.04.1)
End-Date: 2024-03-01  09:39:46

Start-Date: 2024-03-01  09:39:50
Commandline: /usr/bin/unattended-upgrade
Upgrade: libpq5:amd64 (14.10-0ubuntu0.22.04.1, 14.11-0ubuntu0.22.04.1)
End-Date: 2024-03-01  09:39:50

Start-Date: 2024-03-01  09:39:54
Commandline: /usr/bin/unattended-upgrade
Upgrade: postgresql-client-14:amd64 (14.10-0ubuntu0.22.04.1, 14.11-0ubuntu0.22.04.1)
End-Date: 2024-03-01  09:39:55

Start-Date: 2024-03-01  09:39:59
Commandline: /usr/bin/unattended-upgrade
Upgrade: libtiffxx5:amd64 (4.3.0-6ubuntu0.7, 4.3.0-6ubuntu0.8), libtiff5:amd64 (4.3.0-6ubuntu0.7, 4.3.0-6ubuntu0.8), libtiff-dev:amd64 (4.3.0-6ubuntu0.7, 4.3.0-6ubuntu0.8)
End-Date: 2024-03-01  09:40:00

Start-Date: 2024-03-01  09:40:03
Commandline: /usr/bin/unattended-upgrade
Upgrade: libssl3:amd64 (3.0.2-0ubuntu1.14, 3.0.2-0ubuntu1.15), libssl3:i386 (3.0.2-0ubuntu1.14, 3.0.2-0ubuntu1.15), libssl-dev:amd64 (3.0.2-0ubuntu1.14, 3.0.2-0ubuntu1.15)
End-Date: 2024-03-01  09:40:05

Start-Date: 2024-03-01  09:40:09
Commandline: /usr/bin/unattended-upgrade
Upgrade: tzdata:amd64 (2023d-0ubuntu0.22.04, 2024a-0ubuntu0.22.04)
End-Date: 2024-03-01  09:40:10

Start-Date: 2024-03-01  09:40:14
Commandline: /usr/bin/unattended-upgrade
Upgrade: libxml2-utils:amd64 (2.9.13+dfsg-1ubuntu0.3, 2.9.13+dfsg-1ubuntu0.4)
End-Date: 2024-03-01  09:40:15

Start-Date: 2024-03-01  09:40:19
Commandline: /usr/bin/unattended-upgrade
Upgrade: libxml2:amd64 (2.9.13+dfsg-1ubuntu0.3, 2.9.13+dfsg-1ubuntu0.4)
End-Date: 2024-03-01  09:40:19

Start-Date: 2024-03-01  09:40:23
Commandline: /usr/bin/unattended-upgrade
Upgrade: openssl:amd64 (3.0.2-0ubuntu1.14, 3.0.2-0ubuntu1.15)
End-Date: 2024-03-01  09:40:24

Start-Date: 2024-03-01  09:57:54
Commandline: aptdaemon role='role-commit-packages' sender=':1.289'
Upgrade: tcpdump:amd64 (4.99.1-3ubuntu0.1, 4.99.1-3ubuntu0.2), firmware-sof-signed:amd64 (2.0-1ubuntu4.4, 2.0-1ubuntu4.5), tracker-miner-fs:amd64 (3.3.3-0ubuntu0.20.04.1, 3.3.3-0ubuntu0.20.04.2), tracker-extract:amd64 (3.3.3-0ubuntu0.20.04.1, 3.3.3-0ubuntu0.20.04.2)
End-Date: 2024-03-01  09:57:57

Start-Date: 2024-03-03  14:28:02
Commandline: packagekit role='install-files'
Requested-By: gerard (1000)
Install: sqlectron:amd64 (1.38.0)
End-Date: 2024-03-03  14:28:12

Start-Date: 2024-03-03  16:09:58
Commandline: packagekit role='install-files'
Requested-By: gerard (1000)
Install: katyushamcd:amd64 (0.4.6), tk:amd64 (8.6.11+1build2, automatic), tk8.6:amd64 (8.6.12-1build1, automatic)
End-Date: 2024-03-03  16:10:00

Start-Date: 2024-03-03  20:29:14
Commandline: apt remove --purge katyushamcd
Requested-By: gerard (1000)
Purge: katyushamcd:amd64 (0.4.6)
End-Date: 2024-03-03  20:29:15

Start-Date: 2024-03-04  09:17:39
Commandline: /usr/bin/unattended-upgrade
Upgrade: thunderbird-locale-en-gb:amd64 (1:115.6.0+build2-0ubuntu0.22.04.1, 1:115.8.1+build1-0ubuntu0.22.04.1)
End-Date: 2024-03-04  09:17:39

Start-Date: 2024-03-04  09:17:42
Commandline: /usr/bin/unattended-upgrade
Upgrade: thunderbird:amd64 (1:115.6.0+build2-0ubuntu0.22.04.1, 1:115.8.1+build1-0ubuntu0.22.04.1), thunderbird-locale-en:amd64 (1:115.6.0+build2-0ubuntu0.22.04.1, 1:115.8.1+build1-0ubuntu0.22.04.1), thunderbird-locale-fr:amd64 (1:115.6.0+build2-0ubuntu0.22.04.1, 1:115.8.1+build1-0ubuntu0.22.04.1), thunderbird-gnome-support:amd64 (1:115.6.0+build2-0ubuntu0.22.04.1, 1:115.8.1+build1-0ubuntu0.22.04.1)
End-Date: 2024-03-04  09:17:46

Start-Date: 2024-03-04  09:17:49
Commandline: /usr/bin/unattended-upgrade
Upgrade: thunderbird-locale-en-us:amd64 (1:115.6.0+build2-0ubuntu0.22.04.1, 1:115.8.1+build1-0ubuntu0.22.04.1)
End-Date: 2024-03-04  09:17:49

Start-Date: 2024-03-04  09:33:58
Commandline: packagekit role='install-files'
Requested-By: gerard (1000)
Install: katyushamcd:amd64 (0.4.6)
End-Date: 2024-03-04  09:33:59

Start-Date: 2024-03-04  09:37:49
Commandline: apt remove --purge katyushamcd
Requested-By: gerard (1000)
Purge: katyushamcd:amd64 (0.4.6)
End-Date: 2024-03-04  09:37:50

Start-Date: 2024-03-05  10:28:45
Commandline: /usr/bin/unattended-upgrade
Upgrade: python3-cryptography:amd64 (3.4.8-1ubuntu2.1, 3.4.8-1ubuntu2.2)
End-Date: 2024-03-05  10:28:46

Start-Date: 2024-03-05  10:28:49
Commandline: /usr/bin/unattended-upgrade
Upgrade: libnode72:amd64 (12.22.9~dfsg-1ubuntu3.3, 12.22.9~dfsg-1ubuntu3.4), nodejs:amd64 (12.22.9~dfsg-1ubuntu3.3, 12.22.9~dfsg-1ubuntu3.4), libnode-dev:amd64 (12.22.9~dfsg-1ubuntu3.3, 12.22.9~dfsg-1ubuntu3.4)
End-Date: 2024-03-05  10:28:50

Start-Date: 2024-03-05  10:28:53
Commandline: /usr/bin/unattended-upgrade
Upgrade: firefox:amd64 (123.0+build3-0ubuntu0.22.04.1~mt1, 123.0.1+build1-0ubuntu0.22.04.1~mt1)
End-Date: 2024-03-05  10:28:56

Start-Date: 2024-03-05  10:28:59
Commandline: /usr/bin/unattended-upgrade
Upgrade: nodejs-doc:amd64 (12.22.9~dfsg-1ubuntu3.3, 12.22.9~dfsg-1ubuntu3.4)
End-Date: 2024-03-05  10:28:59

Start-Date: 2024-03-06  09:06:07
Commandline: /usr/bin/unattended-upgrade
Upgrade: libde265-0:amd64 (1.0.8-1ubuntu0.2, 1.0.8-1ubuntu0.3)
End-Date: 2024-03-06  09:06:08

Start-Date: 2024-03-07  11:47:48
Commandline: /usr/bin/unattended-upgrade
Upgrade: libc-ares2:amd64 (1.18.1-1ubuntu0.22.04.2, 1.18.1-1ubuntu0.22.04.3)
End-Date: 2024-03-07  11:47:49

Start-Date: 2024-03-08  10:52:01
Commandline: /usr/bin/unattended-upgrade
Install: linux-modules-extra-6.5.0-25-generic:amd64 (6.5.0-25.25~22.04.1, automatic), linux-modules-6.5.0-25-generic:amd64 (6.5.0-25.25~22.04.1, automatic), linux-image-6.5.0-25-generic:amd64 (6.5.0-25.25~22.04.1, automatic), linux-headers-6.5.0-25-generic:amd64 (6.5.0-25.25~22.04.1, automatic), linux-hwe-6.5-headers-6.5.0-25:amd64 (6.5.0-25.25~22.04.1, automatic)
Upgrade: linux-image-generic-hwe-22.04:amd64 (6.5.0.21.21~22.04.11, 6.5.0.25.25~22.04.12), linux-headers-generic-hwe-22.04:amd64 (6.5.0.21.21~22.04.11, 6.5.0.25.25~22.04.12), linux-generic-hwe-22.04:amd64 (6.5.0.21.21~22.04.11, 6.5.0.25.25~22.04.12)
End-Date: 2024-03-08  10:52:54

Start-Date: 2024-03-08  10:52:57
Commandline: /usr/bin/unattended-upgrade
Upgrade: linux-libc-dev:amd64 (5.15.0-97.107, 5.15.0-100.110)
End-Date: 2024-03-08  10:52:59

Start-Date: 2024-03-08  10:53:02
Commandline: /usr/bin/unattended-upgrade
Upgrade: linux-generic-hwe-20.04:amd64 (5.15.0.97.92, 5.15.0.100.97)
End-Date: 2024-03-08  10:53:02

Start-Date: 2024-03-08  10:53:06
Commandline: /usr/bin/unattended-upgrade
Install: linux-image-5.15.0-100-generic:amd64 (5.15.0-100.110, automatic), linux-modules-5.15.0-100-generic:amd64 (5.15.0-100.110, automatic), linux-headers-5.15.0-100:amd64 (5.15.0-100.110, automatic), linux-modules-extra-5.15.0-100-generic:amd64 (5.15.0-100.110, automatic), linux-headers-5.15.0-100-generic:amd64 (5.15.0-100.110, automatic)
Upgrade: linux-headers-generic:amd64 (5.15.0.97.92, 5.15.0.100.97), linux-generic:amd64 (5.15.0.97.92, 5.15.0.100.97), linux-image-generic:amd64 (5.15.0.97.92, 5.15.0.100.97)
End-Date: 2024-03-08  10:54:09

Start-Date: 2024-03-08  10:54:12
Commandline: /usr/bin/unattended-upgrade
Remove: linux-modules-extra-6.5.0-18-generic:amd64 (6.5.0-18.18~22.04.1), linux-modules-6.5.0-18-generic:amd64 (6.5.0-18.18~22.04.1), linux-image-6.5.0-18-generic:amd64 (6.5.0-18.18~22.04.1)
End-Date: 2024-03-08  10:54:23

Start-Date: 2024-03-08  10:54:25
Commandline: /usr/bin/unattended-upgrade
Remove: linux-headers-5.15.0-97-generic:amd64 (5.15.0-97.107)
End-Date: 2024-03-08  10:54:26

Start-Date: 2024-03-08  10:54:29
Commandline: /usr/bin/unattended-upgrade
Remove: linux-headers-5.15.0-97:amd64 (5.15.0-97.107)
End-Date: 2024-03-08  10:54:31

Start-Date: 2024-03-08  10:54:34
Commandline: /usr/bin/unattended-upgrade
Remove: linux-headers-6.5.0-18-generic:amd64 (6.5.0-18.18~22.04.1)
End-Date: 2024-03-08  10:54:35

Start-Date: 2024-03-08  10:54:38
Commandline: /usr/bin/unattended-upgrade
Remove: linux-hwe-6.5-headers-6.5.0-18:amd64 (6.5.0-18.18~22.04.1)
End-Date: 2024-03-08  10:54:40

Start-Date: 2024-03-08  10:54:43
Commandline: /usr/bin/unattended-upgrade
Remove: linux-modules-extra-5.15.0-97-generic:amd64 (5.15.0-97.107), linux-image-5.15.0-97-generic:amd64 (5.15.0-97.107), linux-modules-5.15.0-97-generic:amd64 (5.15.0-97.107)
End-Date: 2024-03-08  10:54:52

Start-Date: 2024-03-11  09:13:06
Commandline: aptdaemon role='role-commit-packages' sender=':1.126'
Upgrade: dpkg:amd64 (1.21.1ubuntu2.2, 1.21.1ubuntu2.3), libcups2:amd64 (2.4.1op1-1ubuntu4.7, 2.4.1op1-1ubuntu4.8), libgpgmepp6:amd64 (1.16.0-1.2ubuntu4.1, 1.16.0-1.2ubuntu4.2), cups-bsd:amd64 (2.4.1op1-1ubuntu4.7, 2.4.1op1-1ubuntu4.8), cups-common:amd64 (2.4.1op1-1ubuntu4.7, 2.4.1op1-1ubuntu4.8), mainline:amd64 (1.4.9-0~202401190113~ubuntu22.04.1, 1.4.10-0~202403090046~ubuntu22.04.1), cups-client:amd64 (2.4.1op1-1ubuntu4.7, 2.4.1op1-1ubuntu4.8), cups-ppdc:amd64 (2.4.1op1-1ubuntu4.7, 2.4.1op1-1ubuntu4.8), alsa-ucm-conf:amd64 (1.2.6.3-1ubuntu1.10, 1.2.6.3-1ubuntu1.11), cups-daemon:amd64 (2.4.1op1-1ubuntu4.7, 2.4.1op1-1ubuntu4.8), libgpgme11:amd64 (1.16.0-1.2ubuntu4.1, 1.16.0-1.2ubuntu4.2), cups-ipp-utils:amd64 (2.4.1op1-1ubuntu4.7, 2.4.1op1-1ubuntu4.8), dpkg-dev:amd64 (1.21.1ubuntu2.2, 1.21.1ubuntu2.3), libcupsimage2:amd64 (2.4.1op1-1ubuntu4.7, 2.4.1op1-1ubuntu4.8), linux-firmware:amd64 (20220329.git681281e4-0ubuntu3.26, 20220329.git681281e4-0ubuntu3.29), libdpkg-perl:amd64 (1.21.1ubuntu2.2, 1.21.1ubuntu2.3), cups-core-drivers:amd64 (2.4.1op1-1ubuntu4.7, 2.4.1op1-1ubuntu4.8), cups:amd64 (2.4.1op1-1ubuntu4.7, 2.4.1op1-1ubuntu4.8), cups-server-common:amd64 (2.4.1op1-1ubuntu4.7, 2.4.1op1-1ubuntu4.8)
End-Date: 2024-03-11  09:14:21

Start-Date: 2024-03-12  08:31:23
Commandline: /usr/bin/unattended-upgrade
Upgrade: accountsservice:amd64 (22.07.5-2ubuntu1.4, 22.07.5-2ubuntu1.5), libaccountsservice0:amd64 (22.07.5-2ubuntu1.4, 22.07.5-2ubuntu1.5)
End-Date: 2024-03-12  08:31:24

Start-Date: 2024-03-12  08:31:27
Commandline: /usr/bin/unattended-upgrade
Upgrade: gir1.2-accountsservice-1.0:amd64 (22.07.5-2ubuntu1.4, 22.07.5-2ubuntu1.5)
End-Date: 2024-03-12  08:31:28

Start-Date: 2024-03-12  19:01:50
Commandline: apt remove --purge code
Requested-By: gerard (1000)
Purge: code:amd64 (1.86.2-1707854558)
End-Date: 2024-03-12  19:02:01

Start-Date: 2024-03-12  19:03:31
Commandline: packagekit role='install-files'
Requested-By: gerard (1000)
Install: code:amd64 (1.86.2-1707854558)
End-Date: 2024-03-12  19:03:46

Start-Date: 2024-03-13  20:12:04
Commandline: apt install php-xdebug
Requested-By: gerard (1000)
Install: php-xdebug:amd64 (3.1.2+2.9.8+2.8.1+2.5.5-4)
End-Date: 2024-03-13  20:12:05

Start-Date: 2024-03-13  20:58:17
Commandline: apt remove --purge php-xdebug
Requested-By: gerard (1000)
Purge: php-xdebug:amd64 (3.1.2+2.9.8+2.8.1+2.5.5-4)
End-Date: 2024-03-13  20:58:18

Start-Date: 2024-03-14  01:11:52
Commandline: apt-get install php-cli
Requested-By: gerard (1000)
Install: php-cli:amd64 (2:8.1+92ubuntu1)
End-Date: 2024-03-14  01:11:53

Start-Date: 2024-03-14  09:23:39
Commandline: /usr/bin/unattended-upgrade
Upgrade: firefox:amd64 (123.0.1+build1-0ubuntu0.22.04.1~mt1, 124.0+build1-0ubuntu0.22.04.1~mt1)
End-Date: 2024-03-14  09:23:42

Start-Date: 2024-03-14  19:36:07
Commandline: apt remove --purge php8.1-xdebug
Requested-By: gerard (1000)
Purge: php8.1-xdebug:amd64 (3.1.2+2.9.8+2.8.1+2.5.5-4)
End-Date: 2024-03-14  19:36:08

Start-Date: 2024-03-14  19:36:29
Commandline: apt install php8.1-xdebug
Requested-By: gerard (1000)
Install: php8.1-xdebug:amd64 (3.1.2+2.9.8+2.8.1+2.5.5-4)
End-Date: 2024-03-14  19:36:29

Start-Date: 2024-03-14  19:46:03
Commandline: apt remove --purge php8.1-xdebug
Requested-By: gerard (1000)
Purge: php8.1-xdebug:amd64 (3.1.2+2.9.8+2.8.1+2.5.5-4)
End-Date: 2024-03-14  19:46:05

Start-Date: 2024-03-14  19:46:26
Commandline: apt install php8.1-xdebug
Requested-By: gerard (1000)
Install: php8.1-xdebug:amd64 (3.1.2+2.9.8+2.8.1+2.5.5-4)
End-Date: 2024-03-14  19:46:26

Start-Date: 2024-03-14  19:47:41
Commandline: apt remove --purge php8.1-xdebug
Requested-By: gerard (1000)
Purge: php8.1-xdebug:amd64 (3.1.2+2.9.8+2.8.1+2.5.5-4)
End-Date: 2024-03-14  19:47:42

Start-Date: 2024-03-14  19:47:54
Commandline: apt install php8.1-xdebug
Requested-By: gerard (1000)
Install: php8.1-xdebug:amd64 (3.1.2+2.9.8+2.8.1+2.5.5-4)
End-Date: 2024-03-14  19:47:55

Start-Date: 2024-03-14  20:08:36
Commandline: apt remove --purge php8.1-xdebug
Requested-By: gerard (1000)
Purge: php8.1-xdebug:amd64 (3.1.2+2.9.8+2.8.1+2.5.5-4)
End-Date: 2024-03-14  20:08:37

Start-Date: 2024-03-14  20:08:50
Commandline: apt install php8.1-xdebug
Requested-By: gerard (1000)
Install: php8.1-xdebug:amd64 (3.1.2+2.9.8+2.8.1+2.5.5-4)
End-Date: 2024-03-14  20:08:51
gerard@gerard-ThinkCentre-M700:/tmp$ 

Dernière modification par samcelia (Le 14/03/2024, à 23:02)

Hors ligne

#8 Le 15/03/2024, à 03:03

krodelabestiole

Re : [RÉSOLU] Xdebug compilé ne marche plus

c'est vraiment chercher la complication de compiler un outil dispo dans les dépôts officiels. il y a une raison à ça ?

Hors ligne

#9 Le 15/03/2024, à 10:27

samcelia

Re : [RÉSOLU] Xdebug compilé ne marche plus

Oui. Tout à fait. Je ne sais pas pourquoi.
C'est l'équipe Xdebug qui le propose !: https://php.tutorials24x7.com/blog/how- … -on-ubuntu
On copie PhpInfos() dans l'encadré et l'équipe Xdebug propose une méthode de compilation.
dans tous les cas, j'avais le paquet ph8.1-xdedug d'installé. Je n'ai sans doute donc pas installé le fichier compilé  (ou je ne l'ai pas installé partout simplement.

Dernière modification par samcelia (Le 15/03/2024, à 10:30)

Hors ligne

#10 Le 15/03/2024, à 12:41

iznobe

Re : [RÉSOLU] Xdebug compilé ne marche plus

Bonjour , je pense qu ' il te suffit de refaire la configuration , via cette page : https://xdebug.org/wizard
puisque tu as purgé la config , normal qu ' il faille reconfiguré non ?

le fichier historique de apt montre qu ' il n' a rien désinstallé d' autre . pas de soucis coté paquet donc .

Dernière modification par iznobe (Le 15/03/2024, à 12:42)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#11 Le 15/03/2024, à 13:08

samcelia

Re : [RÉSOLU] Xdebug compilé ne marche plus

Bonjour iznobe,

Cette page Wizzard Installation propose d'installer Xdebug par compilation.
Or, il existe deux paquets ubuntu. "php8.1.xdegug" est installé sur mon PC.
J'ai configuré comme ceci:
installatio_xdebug
Tout est au vert:
php -v, php -m, les paramètre de xdug_infos.php,
mais Xdebug ne fonctionne pas VSCode.

Dernière modification par samcelia (Le 15/03/2024, à 14:02)

Hors ligne

#12 Le 15/03/2024, à 13:59

krodelabestiole

Re : [RÉSOLU] Xdebug compilé ne marche plus

samcelia a écrit :

C'est l'équipe Xdebug qui le propose !: https://php.tutorials24x7.com/blog/how- … -on-ubuntu

c'est sûr que les dev peuvent documenter la compilation de leur logiciel, c'est pratique en particulier pour eux et les contributeurs qui veulent bosser sur ce projet (ce lien n'a rien à voir ceci dit).
ça peut aussi être pratique quand on utilise la compilation comme méthode ordinaire d'installation, c'est le cas via certaines distros comme gentoo, linux from scratch, ou arch / aur (dans une moindre mesure puisqu'ils proposent leurs propres "recettes").

mais sur debian ou ubuntu la méthode orthodoxe de faire c'est d'installer des paquets pré-compilés, c'est beaucoup plus simple et rapide (à moins d'avoir besoin d'options très spécifiques accessibles seulement lors de la compilation) :
https://packages.ubuntu.com/jammy/php-xdebug
éviter d'indiquer les numéros de version dans le nom de paquets, donc simplement :

apt install php-xdebug

il faudrait peut-être ajouter l'info à la doc : https://doc.ubuntu-fr.org/php

Hors ligne

#13 Le 16/03/2024, à 01:09

samcelia

Re : [RÉSOLU] Xdebug compilé ne marche plus

Xdedug afonctionne de deux manières:

1 - avec une session CLI (sans serveur et sans fichier de configuration launch.json):
- Ouvrir votre fichier avec VSCode
- Mettre des points d'arrêt
- Lancer l'application avec l'option "Start Debugging". Le de débogueur devient opérationnel

2 - avec un serveur local
- Ouvir votre fichier avec VSCode
Créer un fichier launch.json file (section "run and debbug" dans la partie gauche de l'interface)
- Créer  un(des) breakpoint(s)
- Démarrer l'application avec "Start Debugging" option.
-  Lancer l'application avec un navigateur internet (localhost/my-progam.php). Le débogueur se lance sur VSCode.

3 - avec le serveur web interne PHP: - Lancer le serveur PHP sur le port 8082 (par exemple) en local:

 php -S localhost:8082

- Créer un fichier launch.json file si besoin (section "run and debbug" dans la partie gauche de l'interface)
- Démarrer l'application avec l'option "Start Debugging".
- Lancer une requête HTTP avec le logiciel POSTMAN (par exemple) ou depuis un navigateur internet pour une requête GET.
- Le débogueur devrait démarrer aussitôt.

PS: vous pouvez retrouver un résumé de ce que j'ai dit dans la partie 2 de la page Visual Studio Code d'ubuntu-fr (partie 2.3): VSCode-VSCodium

Dernière modification par samcelia (Le 20/03/2024, à 13:44)

Hors ligne