Jacob
Jacob

Reputation: 159

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:

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...

I then run this npm from the shell:

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

(it needed sudo for some reason), I then include the:

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.

Upvotes: 0

Views: 164

Answers (2)

Erez Haba
Erez Haba

Reputation: 216

Please enable the stackdriver debugger API for your project. (assuming it's off) https://console.cloud.google.com/apis/library/clouddebugger.googleapis.com/?q=debugger

Upvotes: 0

Ali Ijaz Sheikh
Ali Ijaz Sheikh

Reputation: 89

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. We'll try to get this into a release soon.

Sorry about the bug.

Upvotes: 1

Related Questions