This custom ddev
command shows all database queries.
It activates the MySQL/MariaDB general_log temporarily and de-activates it when it exits.
- Run
ddev general_log
- In order to exit, press
CTRL+C
.
After running
ddev general_log
you would see all executed database queries:
Copy the file general_log into your project's .ddev/commands/db.
Contributed by @jonaseberle