A rough sketch for this would be that if a request triggers a jobs, instead of sending it to the general queue, send it to a dedicated queue for mwdebug and make sure mwdebug respect verbose/xhgui headers.
One could argue this is not a good solution in k8s world, having something that would work in k8s world would be great.