简体   繁体   English

Stackdriver Debugger无法捕获快照

[英]Stackdriver Debugger doesn't capture snapshots

I am using AppEngine, NodeJS (Standard), I have accepted the license agreements, and I am initializing the Debug Agent this way: 我正在使用AppEngine,NodeJS(标准),已经接受了许可协议,并且正在以这种方式初始化调试代理:

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

I can see all the logs for my application in the Logs Viewer, all the requests are here. 我可以在“日志查看器”中看到应用程序的所有日志,所有请求都在这里。

When opening the Stackdriver Debugger, it recognizes what is the current source code running, and displays it. 打开Stackdriver Debugger时,它会识别当前正在运行的源代码并显示出来。 I try adding a few snapshots and logpoints, as basic as this: 我尝试添加一些基本的快照和日志点,如下所示:

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

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. 除了Stackdriver Debugger以外,其他所有功能似乎都可以正常工作,即使它似乎也没有抱怨。

I have looked at everything and made sure everything was set up properly but I am not sure how to "debug the debugger" further. 我已经仔细研究了所有内容,并确保一切设置正确,但是我不确定如何进一步“调试调试器”。

Is it actually even working, and people are using it with NodeJS in Standard mode? 它实际上是否还可以工作,并且人们在标准模式下将其与NodeJS一起使用?

What can I check? 我可以检查什么? Any way I can see errors related to the Debugger itself? 我能以任何方式看到与调试器本身相关的错误吗?

Prior to the „request” statement, how did you set up your project in Stackdriver Debugger for node.js? 在“ request”语句之前,您是如何在Stackdriver Debugger中为node.js设置项目的? You may check Setting Up Stackdriver Debugger for Node.js as reference. 您可以检查设置Node.js的Stackdriver Debugger作为参考。

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 . Public Issue Tracker中保护您的信息要容易得多。 You are encouraged to open a similar issue there. 鼓励您在此处打开一个类似的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM