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

Commit 0b98240

Browse files
committed
Documentation updates
* Update branding to Stackdriver Debugger. * It is no longer a requirement that source be uploaded to the cloud repo. * Provide documentation on alternative ways to make the source code accessible.
1 parent 4d2dfff commit 0b98240

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Node.js agent for Google Cloud Debug
1+
# Stackdriver Debugger agent for Node.js
22

33
[![NPM Version][npm-image]][npm-url]
44
[![Build Status][travis-image]][travis-url]
@@ -8,29 +8,28 @@
88

99
> *This module is experimental, and should be used by early adopters. This module uses APIs there may be undocumented and may be subject to change without notice.*
1010
11-
This module provides Cloud Debug support for Node.js applications. [Google Cloud Debug](https://cloud.google.com/tools/cloud-debugger/) is a feature of [Google Cloud Platform](https://cloud.google.com/) that lets you debug your applications in production without stopping or pausing your application. Here's an introductory video:
11+
This module provides Stackdriver Debugger support for Node.js applications. [Stackdriver Debugger](https://cloud.google.com/tools/cloud-debugger/) is a feature of [Google Cloud Platform](https://cloud.google.com/) that lets you debug your applications in production without stopping or pausing your application. Here's an introductory video:
1212

1313
[![Cloud Debugger Intro](http://img.youtube.com/vi/tyHcK_kAOpw/0.jpg)](https://www.youtube.com/watch?v=tyHcK_kAOpw)
1414

1515
## Prerequisites
16-
* Your application will need to be using Node.js version 0.12 or greater. Node.js v5+ is recommended.
17-
* The source of your application is uploaded to a [cloud source repository](https://cloud.google.com/tools/cloud-repositories/docs/). The Debugger UI needs the source to be available in order to set snapshots.
16+
* Stackdriver Debugger is comptible with Node.js version 0.12 or greater. Node.js v5+ is recommended.
1817

19-
## Quick Start (Node.js v4.x+)
18+
## Quick Start
2019
```shell
2120
# Install with `npm` or add to your `package.json`.
2221
npm install --save @google/cloud-debug
2322

2423
# Require the agent at the top of your main script (but after '@google/cloud-trace' if you are also using it).
2524
require('@google/cloud-debug');
2625
```
27-
Deploy your application, and navigate to the [Debug tab][debug-tab] within the [Google Cloud Console][dev-console] to set snapshots and start debugging.
26+
Deploy your application, and navigate to the [Strackdriver Debug view][debug-tab] within the [Google Cloud Console][dev-console] to set snapshots and start debugging.
2827

2928
## Running on Google Cloud Platform
3029

3130
There are three different services that can host Node.js application to Google Cloud Platform.
3231

33-
### Google App Engine Flexible Environment
32+
### Google App Engine Flexible Environment
3433

3534
If you are using [Google App Engine Flexible Environment ](https://cloud.google.com/appengine/docs/flexible/), you do not have to do any additional configuration.
3635

@@ -48,7 +47,7 @@ Container Engine nodes need to also be created with the `cloud-platform` scope,
4847

4948
## Running elsewhere
5049

51-
If your application is running outside of Google Cloud Platform, such as locally, on-premise, or on another cloud provider, you can still use Cloud Debug.
50+
If your application is running outside of Google Cloud Platform, such as locally, on-premise, or on another cloud provider, you can still use Stackdriver Debugger.
5251

5352
1. You will need to specify your project name. Your project name is visible in the [Google Cloud Console][cloud-console-projects], it may be something like `particular-future-12345`. If your application is [running on Google Cloud Platform](running-on-google-cloud-platform), you don't need to specify the project name.
5453

@@ -72,7 +71,9 @@ Once your application is running (deployed, or elsewhere), you should be able to
7271

7372
![Debug UI](doc/images/debug-ui.png?raw=true)
7473

75-
You can browse the code, and set a snapshot by clicking in the gutter (line number area). Once you set a snapshot, the debug agent will insert a momentary breakpoint at the code location in the running instances of the application.
74+
If your source is hosted in a [cloud source repository](https://cloud.google.com/tools/cloud-repositories/docs/), Stackdriver Debugger will display the source code of your application automatically. Alternatively, you can also point the debugger to local files, a GitHub or Bitbucket repository, through a Source Capture, or you can simply type in a filename and line number. More details are on source options are [available here](https://cloud.google.com/debugger/docs/source-options).
75+
76+
If you have the source available, you can set a snapshot by clicking in the gutter (line number area). Once you set a snapshot, the debug agent will insert a momentary breakpoint at the code location in the running instances of the application.
7677

7778
![Breakpoint Set](doc/images/breakpoint-set.png?raw=true)
7879

0 commit comments

Comments
 (0)