To use xdebug with macOS and docker is quite, let´s call it tricky ;)
The following steps need to be proceed to get it working:
- use the config from the xdebug.ini wihtin your docker web container. Important: set remote_connect_back to off
| If you are facing the following error while trying to connect to a MySQL server using the MySQL Workbench snap and Ubuntu Focal Fossa: "mysql workbench an apparmor policy prevents this sender [...]" | |
| You might try the following solution: | |
| 1 - On a new terminal window, run the following commands: | |
| # snap connect mysql-workbench-community:password-manager-service | |
| # snap connect mysql-workbench-community:ssh-keys | |
| By using snap connect, you will fix the issue with the MySQL Workbench snap, allowing you to connect to the server(s). |
| ARG PHP_VERSION=7.2-fpm-stretch | |
| ARG COMPOSER_VERSION=latest | |
| # builder stage | |
| FROM php:$PHP_VERSION AS builder | |
| ARG AMQP_VERSION=1.9.3 | |
| ARG PHPREDIS_VERSION=4.1.1 | |
| RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests \ |
| <?php | |
| /** | |
| * Insert a value or key/value pair after a specific key in an array. If key doesn't exist, value is appended | |
| * to the end of the array. | |
| * | |
| * @param array $array | |
| * @param string $key | |
| * @param array $new | |
| * |
| rabbitmqctl add_user test test | |
| rabbitmqctl set_user_tags test administrator | |
| rabbitmqctl set_permissions -p / test ".*" ".*" ".*" |