我正在尝试针对Firebase Cloud Functions进行安装调试(从VS Code等IDE),但是无法将其部署到仿真器。没有关于它的官方文档,但我正在尝试遵循this article。
functions deploy helloWorld --trigger-http --timeout 600s helloWorld
错误
Copying file:///tmp/tmp-24906PoEtMKaWT7sM.zip...
Waiting for operation to finish...done.
Deploying function......(node:24946) UnhandledPromiseRejectionWarning: Error: read ECONNRESET
at _errnoException (util.js:1022:11)
at TCP.onread (net.js:628:25)
(node:24946) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:24946) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
我知道official guide是在本地部署firebase函数,但是我无法设置断点并以此进行调试。
有什么方法可以设置调试?