微信公开课
微信公开课小程序热门讨论关于「云函数如何打印调试信息」的小程序开发问题
补充:需求的场景描述(希望解决的问题)在云函数exportsmain=async(event,context)={}中,想打印event的内容,应该如何做希望提供的能力微信者回复开发者回复consolelog(JSONstringify(event
展开:需求的场景描述(希望解决的问题)在云函数exportsmain=async(event,context)={}中,想打印event的内容,应该如何做希望提供的能力即速小程序:consolelog(JSONstringify(event)):看了云端管理的日志,没有我console的东西啊返回结果:{data:[{ADC:8*12bit,Comparator:,DataFlash:Configurable,Flash:18K,IO:18,I2C:1,INT:2,ISPROM:04K,ISPICPIAP:ISP,ICP,IAP,PWM:6*16bit,Package:TSSOP20QFN20,PartNo:N76E003,SPI:1,SRAM:1K,SpecialFunction:1T8051,16MHzinternalRC,KBI,onchipdebugger,Timer:4*16bit,UART:2,_id:5c02389d9b5556d0ef6c8d35}],errMsg:collectionget:ok}日志:20181229T06:30:14196Z333514f20b3311e9a4d85254005d5fdb{paras:0,part:8051,userInfo:{appId:wx105ea8361b1eaa46,openId:o64cB5RdezEeOu9eZv6RmGl4Wej8}}ENDRequestId:333514f20b3311e9a4d85254005d5fdbReportRequestId:333514f20b3311e9a4d85254005d5fdbDuration:99053msMemory:256MBMaxMemoryUsed:176562MB:exportsmain=async(event,context)={consolelog(event)}然后去云函数管理端查看日志
更多有关「云函数如何打印调试信息」的讨论可以前往微信公开课小程序参与互动哦!了解更多