sudo apt install php8.0-mysql
sudo apt install php8.0-xdebug

agregar al php.ini

xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_port=9003
xdebug.client_host=localhost
xdebug.log=/var/log/xdebug.log
xdebug.idekey="netbeans-xdebug"