1.0.2 • Published 4 years ago

debug-wechat v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

安装

npm i debug-wechat

使用

import Debug from 'formatetime'

方法介绍

  1. 在app.js中先配置上报参数
import Debug from './motify-es6-1.js'
 let DeBugs = new Debug();
 let config = {
   url: 'http://localhost:3000/error/uploadError',
   setSystemInfo: true,
   setNetworkType: true,
   setLocation: true,
   key: 58679,
   version:'2.1.43'
}
DeBugs.init(config)

2.功能简介: a.捕获小程序前端中的语法错误, 包含: SyntaxError:语法错误 ; Uncaught ReferenceError:引用错误 ; TypeError类型错误 ; EvalError eval()函数执行错误 ; RangeError:范围错误

b.支持延迟上报 c.可获取报错之前的页面路径