0

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.

Jacob
  • 159
  • 3
  • 13

2 Answers2

1

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.

0

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

Yannick MG
  • 786
  • 9
  • 19
Erez Haba
  • 216
  • 1
  • 3
  • API is enabled... appears to be on but of course not working as a debugger https://drive.google.com/open?id=0BwA2KVlVFTQtZHotZ3dYWWluN0U – Jacob Sep 26 '17 at 00:13
  • I've now got the right hand column, but there appears to be a bug (I did have the right hand column before taking the first screenshot)... Will comment again if I can't assign a proper snapshot because of some other bug https://drive.google.com/open?id=0BwA2KVlVFTQtczhaQmQxNFByRkE – Jacob Sep 26 '17 at 00:19