我在Flutter应用程序中使用Firebase Cloud Functions。但是我无法调试我的云功能。
首先,我尝试了this。
并运行firebase emulators:start --inspect-functions
。它给了我这个错误。
我尝试过this。但是firebase setup:web
已弃用。这就是为什么我也停留在这里。
我安装了npm i @google-cloud/functions-framework
。然后我像这样创建并配置了launch.json和settings.json。
然后运行node --inspect node_modules/@google-cloud/functions-framework --target=listGoogleAPIs
但是它给了我这个错误:Provided code is not a loadable module.
Could not load the function, shutting down.
Waiting for the debugger to disconnect...
我的代码就是这样:
有人可以指导我进行配置吗?