摘要:Fundebug的微信小程序错误监控插件更新至0.8.0,新增了App和Page数据,可以帮助大家更快Debug,请及时更新!

App

通过getApp方法获取,数据示例如下:

{    "globalData": {        "recharge_amount_min": "1",        "order_reputation_score": 3,        "fundebug": {            "metaData": {                "test": "test"            }        },        "shareProfile": "百款精品商品,总有一款适合您",        "version": "1.9.SNAPSHOT",        "subDomain": "tz",        "userInfo": null    }}

Fundebug控制台截图如下:

Fundebug微信小程序插件更新至0.8.0

如果你不需要收集App数据,则可以将silentApp属性设为true:

fundebug.init({    silentApp : true})

Page

通过getCurrentPages获取,数据示例:

{    "route": "pages/shop-cart/index",    "__viewData__": {        "delBtnWidth": 51,        "goodsList": {            "list": [],            "noSelect": false,            "allSelect": true,            "totalPrice": 0,            "saveHidden": true        }    },    "data": {        "__webviewId__": 54,        "delBtnWidth": 51,        "goodsList": {            "list": [],            "noSelect": false,            "allSelect": true,            "totalPrice": 0,            "saveHidden": true        }    },    "__route__": "pages/shop-cart/index",    "__wxWebviewId__": 54}

Fundebug控制台截图如下:
Fundebug微信小程序插件更新至0.8.0

如果你不需要收集Page数据,则可以将silentPage属性设为true:

fundebug.init({    silentPage : true})

参考

Fundebug微信小程序插件更新至0.8.0