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

Add support for source-context #16

Merged
merged 1 commit into from
Sep 16, 2015
Merged

Add support for source-context #16

merged 1 commit into from
Sep 16, 2015

Conversation

ofrobots
Copy link
Contributor

Fixes: #3

gcloud cli generates a source-context.json file on deployment. This works for
Java already, but is expected to start working for Node.js as well as per some
work being done by the Cloud Debug team.

There are no tests available at the moment, but I will add them as a follow-on. This is tracked by: #15

Fixes: #3

gcloud cli generates a source-context.json file on deployment. This works for
Java already, but is expected to start working for Node.js as well as per some
work being done by the Cloud Debug team.
@@ -102,21 +115,31 @@ DebugletApi.prototype.registerError = function(message) {
DebugletApi.prototype.register_ = function(errorMessage, callback) {
var that = this;

var pjson = require('../package.json');
var cwd = process.cwd();
var mainScript = path.relative(cwd, process.argv[1]);

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@matthewloring
Copy link
Contributor

LGTM.

@ofrobots ofrobots merged commit c248e50 into googleapis:master Sep 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants