Correctly named debug config, fixed registerNewHandlers to use the config correctly and changed scope of the module view.