1
- 发布:2020-09-06 16:58
- 更新:2020-09-07 19:58
- 阅读:602
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX版本号: 2.8.11
操作步骤:
预期结果:
1
1
实际结果:
1
1
bug描述:
exports.main中console.log打印的内容可以正常显示在云函数控制台,
但是,如果是通过调用本文件的其他函数,那函数内部的日志不会打印出来
比如下面,testCount中的日志不会打印出来
exports.main = async (event, context) => {
//event为客户端上传的参数
console.log('event : ' + event)
let res
res = await testCount()
console.log('返回结果');
console.log(res);
//返回数据给客户端
return res
};
async function testCount(){
console.log('开始total');
}
linnian (作者)
我试了几次都打印不出来,应该时必出,稳定版20200820也一样
2020-09-08 15:44