@polarit Nice. I quite like the way @lydell is handling it here using a let
for the debugger.
I think code can get quite messy fast using that function, so might be better used sparingly, checking each function as you go. And I suppose unit tests will go a long way to keeping bugs at bay.