Toggle debug mode via query string