register

Register the receiver on the given context. Only registers in debug builds; no-op in release.