Skip to content

Commit 0cc1c1f

Browse files
committed
Switch to @google-cloud/debug-agent
1 parent 145831c commit 0cc1c1f

File tree

8 files changed

+1094
-710
lines changed

8 files changed

+1094
-710
lines changed

debugger/app.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
'use strict';
1717

1818
// [START setup]
19-
require('@google/cloud-debug').start();
19+
require('@google-cloud/debug-agent').start();
2020

21-
var express = require('express');
22-
var app = express();
21+
const express = require('express');
22+
const app = express();
2323
app.enable('trust proxy');
2424
// [END setup]
2525

26-
app.get('/', function (req, res) {
26+
app.get('/', (req, res) => {
2727
// Try using the StackDriver Debugger dashboard to inspect the "req" object
2828
res.status(200).send('Hello, world!');
2929
});
3030

3131
// Start the server
32-
var server = app.listen(process.env.PORT || 8080, function () {
32+
const server = app.listen(process.env.PORT || 8080, () => {
3333
console.log('App listening on port %s', server.address().port);
3434
console.log('Press Ctrl+C to quit.');
3535
});

debugger/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"start": "node app.js"
1212
},
1313
"dependencies": {
14-
"@google/cloud-debug": "0.9.1",
14+
"@google-cloud/debug-agent": "0.10.2",
1515
"express": "4.14.1"
1616
}
1717
}

0 commit comments

Comments
 (0)