I know on the website XDebug is shown as “coming soon”, but when it does, I’m hoping it will support dynamic loading.
My current setup with Docker is such that when nginx / php-fpm sees the phpStorm debug flag (set when you press the little telephone like icon in phpStorm), it routes the request through an instance of php-fpm that has XDebug compiled. If that flag is not present, no such routing occurs.
This is immensely useful because even XDebug 3 has severe performance degradation, so I’d prefer to only run it when I need more than the standard dump/die paradigm.