Wrapper with global switch for console debugging