debug module should be adjusted to use Request class api.