Debugger无法捕获快照

Debugger无法捕获快照

本文介绍了Stackdriver Debugger无法捕获快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用AppEngine,NodeJS(标准),已经接受了许可协议,并且正在以这种方式初始化调试代理:

I am using AppEngine, NodeJS (Standard), I have accepted the license agreements, and I am initializing the Debug Agent this way:

require('@google-cloud/debug-agent').start({ allowExpressions: true });

我可以在Logs Viewer中查看应用程序的所有日志,所有请求都在这里。

I can see all the logs for my application in the Logs Viewer, all the requests are here.

打开Stackdriver Debugger时,它将识别当前正在运行的源代码并显示出来。我尝试添加一些基本的快照和日志点,如下所示:

When opening the Stackdriver Debugger, it recognizes what is the current source code running, and displays it. I try adding a few snapshots and logpoints, as basic as this:

if (true) logpoint("Hello World!")

它正在等待匹配,但显然丢失了它们。也没有与我的日志点相关的日志。但是,我可以看到我的应用输出的标准日志。除了Stackdriver Debugger以外,其他所有功能似乎都可以正常工作,即使它似乎也没有抱怨。

It is waiting for hits, but obviously missing them. There are also no logs related to my logpoints. However, I can see the standard logs outputted by my app. Everything seems to work except the Stackdriver Debugger, even though it doesn't seem to complain either.

我仔细检查了所有内容,并确保所有设置均正确,但我我不确定如何进一步调试调试器。

I have looked at everything and made sure everything was set up properly but I am not sure how to "debug the debugger" further.

它甚至可以正常工作,并且人们在标准模式下将其与NodeJS一起使用吗?

Is it actually even working, and people are using it with NodeJS in Standard mode?

我该怎么办?检查吗我能以任何方式看到与调试器本身相关的错误吗?

What can I check? Any way I can see errors related to the Debugger itself?

推荐答案

在 request语句之前,您是如何设置的?您在Stackdriver Debugger for Node.js中的项目?您可以检查作为参考。

Prior to the „request" statement, how did you set up your project in Stackdriver Debugger for node.js? You may check Setting Up Stackdriver Debugger for Node.js as reference.

要重现此问题,需要机密信息,例如项目的详细信息和示例代码。在中保护您的信息要容易得多。鼓励您在此处打开一个类似的问题。

To reproduce this issue, one needs confidential information, such as details of your project and sample code. It is much easier to protect your information in the Public Issue Tracker. You are encouraged to open a similar issue there.

这篇关于Stackdriver Debugger无法捕获快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 17:18