Render camera problem

Hi, wonder if someone can help me with a problem.
i upgraded a game from cocos creator 1.9 to 2.3 and I’m having a lot of issues with the camera. when i execute it crashes and shows errors sucha as this


also, this piece of code displays an error

onEnable: function () {
cc.director.getPhysicsManager().attachDebugDrawToCamera(this.Camera);
},

onDisable: function () {
    cc.director.getPhysicsManager().detachDebugDrawFromCamera(this.Camera);
},


this is the error.

thanks in advanced

attachDebugDrawToCamera was deprecated. Can you try cc.director.getPhysicsManager()._debugDrawer.group = xxx

thanks for the reply, unfortunately I am quite new to cocos and javascript in general, could you explain to me what does the xxx, means? what should I write there? I tried this.camera, and it doesn’t work…

The xxx is the group name which configs in the Group Manager.