Preempting potential questions, I'm using (abusing?) mutable parameters here. Changes to debug_content will change the original object.