Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit af8aa79

Browse files
author
Matt Loring
committed
Rename source-contexts -> source-context
1 parent 338f9ab commit af8aa79

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ If your application is running outside of Google Cloud Platform, such as locally
6262

6363
3. Alternatively, if you are running your application on a machine where your are using the [`gcloud` command line tools][gcloud-sdk], and are logged using `gcloud auth login`, you already have sufficient credentials, and a service account key is not required.
6464

65-
At this point you can deploy your application to and the debug agent will activate with no further action. If you want to run your application locally, you can still use the cloud debug agent, with a few additional steps:
65+
4. Generate a `source-context.json` file which contains information about the version of the source code used to build the application. This file should be located in the root directory of your application. When you open the Stackdriver Debugger in the Cloud Platform Console, it uses the information in this file to display the correct version of the source.
66+
67+
gcloud preview app gen-repo-info-file
6668

6769
## Using the Debugger
6870

lib/debugletapi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ DebugletApi.prototype.init = function(uid, logger, callback) {
7373
}
7474
that.project_ = project;
7575

76-
fs.readFile('source-contexts.json', 'utf8', function(err, data) {
76+
fs.readFile('source-context.json', 'utf8', function(err, data) {
7777
try {
7878
that.sourceContext_ = JSON.parse(data);
7979
} catch (e) {
80-
logger.warn('Malformed source-contexts.json file.');
80+
logger.warn('Malformed source-context.json file.');
8181
// But we keep on going.
8282
}
8383
callback(null);

0 commit comments

Comments
 (0)