Set debug mode at runtime.