简体   繁体   English

Google Compute Engine上的Stackdriver Debugger

[英]Stackdriver Debugger on Google Compute Engine

I am trying to transition to Stackdriver Debugger because of the announcement the other day of their Node JS beta component now publicly available... I'm on compute engine so I found this part of the documentation... I added the cloud_debugger scope to my instance with: 我正试图过渡到Stackdriver Debugger,因为前一天已经公开发布了它们的Node JS beta组件的公告 ...我在计算引擎上,所以我找到了文档的这一部分 ...我将cloud_debugger范围添加到了我的实例有:

gcloud compute instances set-service-account <INSTANCE> --scopes="https://www.googleapis.com/auth/cloud_debugger"

and of course the vm had access to all of the Google API's checked off with the initial creation so the cloud-platform scope is there... 当然,虚拟机可以访问初次创建时已检查的所有Google API,因此云平台范围就在那里...

I then run this npm from the shell: 然后,我从外壳运行此npm:

sudo npm install --save @google-cloud/debug-agent

(it needed sudo for some reason), I then include the: (出于某种原因需要sudo),然后包括:

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

at the top of my node files but when I load console.cloud.google.com/debug ... I'm not seeing any of my code... I've tried a few other things since, such as selecting a Cloud Source Repository... I do see my code finally but the right hand side is telling me my code is not deployed... I'm not wanting to use stackdriver debugger with a publicly deployed project just yet, perhaps sometime in the future after the API has been more fully developed, but I'd still need access to the full GUI suite. 在我的节点文件的顶部,但是当我加载console.cloud.google.com/debug ...时,我看不到任何代码...此后,我尝试了其他一些操作,例如选择Cloud源代码存储库...我终于看到了我的代码,但是右侧告诉我我的代码尚未部署...我现在还不想在公共部署的项目上使用stackdriver debugger,也许以后的某个时候该API的功能已得到更全面的开发,但我仍然需要访问完整的GUI套件。

Based on the screenshot you provided, it seems like you were hit by the bug being fixed here: https://github.com/GoogleCloudPlatform/cloud-debug-nodejs/pull/334 . 根据您提供的屏幕截图,似乎您被这里所修复的错误所打击: https : //github.com/GoogleCloudPlatform/cloud-debug-nodejs/pull/334 We'll try to get this into a release soon. 我们将尽快将其发布。

Sorry about the bug. 抱歉,该错误。

Please enable the stackdriver debugger API for your project. 请为您的项目启用stackdriver调试器API。 (assuming it's off) https://console.cloud.google.com/apis/library/clouddebugger.googleapis.com/?q=debugger (假设已关闭) https://console.cloud.google.com/apis/library/clouddebugger.googleapis.com/?q=debugger

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

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