support debug for browser side.