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

Commit 95c9078

Browse files
authored
docs: remove content about the shut down Cloud Debugger service (#1149)
1 parent 7ed8fb2 commit 95c9078

File tree

3 files changed

+50
-96
lines changed

3 files changed

+50
-96
lines changed

.readme-partials.yaml

Lines changed: 23 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
introduction: |-
2-
> This module provides Cloud Debugger support for Node.js applications.
3-
Cloud Debugger is a feature of Google Cloud Platform that lets you debug your
2+
> This module provides Snapshot Debugger support for Node.js applications.
3+
Snapshot Debugger is an open source product that lets you debug your
44
applications in production without stopping or pausing your application.
55
6+
A Firebase Realtime Database instance is used to store your data.
7+
68
body: |-
79
## Debugger Agent Settings
810
@@ -24,56 +26,31 @@ body: |-
2426
});
2527
```
2628
29+
The following options configure the connection to the Firebase database:
30+
* firebaseDbUrl - https://**PROJECT_ID**-cdbg.firebaseio.com will be used if
31+
not provided. where **PROJECT_ID** is your project ID.
32+
* firebaseKeyPath - Default google application credentials are used if not
33+
provided.
34+
2735
See [the agent configuration][config-ts] for a list of possible configuration
2836
options.
2937
3038
## Using the Debugger
3139
32-
Once your application is running, use the [Debug UI][debug-tab] in your Cloud
33-
[developer console][dev-console] to debug your application. The Debug UI can
34-
be found in the 'Operations -> Debug' section in the navigation panel, or by
35-
simply searching for 'Debug' in the cloud console.
36-
37-
To take a snapshot with the debugger:
38-
1. Click in the gutter (line number area) or enter a filename and line number
39-
in the snapshot panel
40-
2. The debugger inserts a momentary breakpoint at the specified location in
41-
your code in the running instance of your application.
42-
3. As soon as that line of code is reached in any of the running instances of
43-
your application, the stack traces, local variables, and watch expressions
44-
are captured, and your application continues.
45-
46-
**Note:** The directory layout of the code that is being debugged does not
47-
have to exactly match the source code specified in the Debug UI. This is
48-
because the debug agent resolves a snapshot filename by searching for a file
49-
with the longest matching path suffix. If a unique match is found, that file
50-
will be used to set the snapshot.
51-
52-
## Snapshot Debugger - Firebase Realtime Database Backend
53-
54-
This functionality is available for release 6.0.0 onward of this agent and
55-
provides support for the Snapshot Debugger, which is being provided as a
56-
replacement for the deprecated Cloud Debugger service.
57-
58-
To enable the agent, add the following at the top of your app's main script
59-
or entry point:
60-
61-
```js
62-
require('@google-cloud/debug-agent').start({
63-
useFirebase: true,
64-
firebaseDbUrl: 'https://my-database-url.firebaseio.com',
65-
firebaseKeyPath: 'path/to/service_account.json',
66-
});
67-
```
40+
Once your application is running, use the
41+
[Snapshot Debugger CLI](https://pypi.org/project/snapshot-dbg-cli/) or the
42+
[VSCode extension][extension-page]
43+
to debug your application.
6844
69-
The following params are optional:
70-
* firebaseDbUrl - https://**PROJECT_ID**-cdbg.firebaseio.com will be used if
71-
not provided. where **PROJECT_ID** is your project ID.
72-
* firebaseKeyPath - Default google application credentials are used if not
73-
provided.
45+
## Historical note
7446
75-
See https://github.com/GoogleCloudPlatform/snapshot-debugger and
76-
https://cloud.google.com/debugger/docs/deprecations for more details.
47+
Version 6.x and 7.x of this agent supported both the now shutdown Cloud
48+
Debugger service (by default) and the
49+
[Snapshot Debugger](https://github.com/GoogleCloudPlatform/snapshot-debugger/)
50+
(Firebase RTDB backend) by setting the `useFirebase` flag to true. Version 8.0.0
51+
removed support for the Cloud Debugger service, making the Snapshot Debugger the
52+
default. To note the `useFirebase` flag is now obsolete, but still present for
53+
backward compatibility.
7754
7855
## Limitations and Requirements
7956
@@ -94,6 +71,5 @@ body: |-
9471
file.
9572
9673
[config-ts]: https://github.com/googleapis/cloud-debug-nodejs/blob/master/src/agent/config.ts
97-
[debug-tab]: https://console.cloud.google.com/debug
98-
[dev-console]: https://console.cloud.google.com/
74+
[extension-page]: https://github.com/GoogleCloudPlatform/snapshot-debugger/tree/main/snapshot_dbg_extension
9975
[snapshot-debugger-readme]: https://github.com/GoogleCloudPlatform/snapshot-debugger#readme

README.md

Lines changed: 23 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010

1111

1212

13-
> This module provides Cloud Debugger support for Node.js applications.
14-
Cloud Debugger is a feature of Google Cloud Platform that lets you debug your
13+
> This module provides Snapshot Debugger support for Node.js applications.
14+
Snapshot Debugger is an open source product that lets you debug your
1515
applications in production without stopping or pausing your application.
1616

17+
A Firebase Realtime Database instance is used to store your data.
18+
1719

1820
A comprehensive list of changes in each version may be found in
1921
[the CHANGELOG](https://github.com/googleapis/cloud-debug-nodejs/blob/main/CHANGELOG.md).
@@ -74,56 +76,31 @@ require('@google-cloud/debug-agent').start({
7476
});
7577
```
7678

79+
The following options configure the connection to the Firebase database:
80+
* firebaseDbUrl - https://**PROJECT_ID**-cdbg.firebaseio.com will be used if
81+
not provided. where **PROJECT_ID** is your project ID.
82+
* firebaseKeyPath - Default google application credentials are used if not
83+
provided.
84+
7785
See [the agent configuration][config-ts] for a list of possible configuration
7886
options.
7987

8088
## Using the Debugger
8189

82-
Once your application is running, use the [Debug UI][debug-tab] in your Cloud
83-
[developer console][dev-console] to debug your application. The Debug UI can
84-
be found in the 'Operations -> Debug' section in the navigation panel, or by
85-
simply searching for 'Debug' in the cloud console.
86-
87-
To take a snapshot with the debugger:
88-
1. Click in the gutter (line number area) or enter a filename and line number
89-
in the snapshot panel
90-
2. The debugger inserts a momentary breakpoint at the specified location in
91-
your code in the running instance of your application.
92-
3. As soon as that line of code is reached in any of the running instances of
93-
your application, the stack traces, local variables, and watch expressions
94-
are captured, and your application continues.
95-
96-
**Note:** The directory layout of the code that is being debugged does not
97-
have to exactly match the source code specified in the Debug UI. This is
98-
because the debug agent resolves a snapshot filename by searching for a file
99-
with the longest matching path suffix. If a unique match is found, that file
100-
will be used to set the snapshot.
101-
102-
## Snapshot Debugger - Firebase Realtime Database Backend
103-
104-
This functionality is available for release 6.0.0 onward of this agent and
105-
provides support for the Snapshot Debugger, which is being provided as a
106-
replacement for the deprecated Cloud Debugger service.
107-
108-
To enable the agent, add the following at the top of your app's main script
109-
or entry point:
110-
111-
```js
112-
require('@google-cloud/debug-agent').start({
113-
useFirebase: true,
114-
firebaseDbUrl: 'https://my-database-url.firebaseio.com',
115-
firebaseKeyPath: 'path/to/service_account.json',
116-
});
117-
```
90+
Once your application is running, use the
91+
[Snapshot Debugger CLI](https://pypi.org/project/snapshot-dbg-cli/) or the
92+
[VSCode extension][extension-page]
93+
to debug your application.
11894

119-
The following params are optional:
120-
* firebaseDbUrl - https://**PROJECT_ID**-cdbg.firebaseio.com will be used if
121-
not provided. where **PROJECT_ID** is your project ID.
122-
* firebaseKeyPath - Default google application credentials are used if not
123-
provided.
95+
## Historical note
12496

125-
See https://github.com/GoogleCloudPlatform/snapshot-debugger and
126-
https://cloud.google.com/debugger/docs/deprecations for more details.
97+
Version 6.x and 7.x of this agent supported both the now shutdown Cloud
98+
Debugger service (by default) and the
99+
[Snapshot Debugger](https://github.com/GoogleCloudPlatform/snapshot-debugger/)
100+
(Firebase RTDB backend) by setting the `useFirebase` flag to true. Version 8.0.0
101+
removed support for the Cloud Debugger service, making the Snapshot Debugger the
102+
default. To note the `useFirebase` flag is now obsolete, but still present for
103+
backward compatibility.
127104

128105
## Limitations and Requirements
129106

@@ -144,8 +121,7 @@ leaks. See [#811](https://github.com/googleapis/cloud-debug-nodejs/issues/811)
144121
file.
145122

146123
[config-ts]: https://github.com/googleapis/cloud-debug-nodejs/blob/master/src/agent/config.ts
147-
[debug-tab]: https://console.cloud.google.com/debug
148-
[dev-console]: https://console.cloud.google.com/
124+
[extension-page]: https://github.com/GoogleCloudPlatform/snapshot-debugger/tree/main/snapshot_dbg_extension
149125
[snapshot-debugger-readme]: https://github.com/GoogleCloudPlatform/snapshot-debugger#readme
150126

151127

samples/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66

77
[![Open in Cloud Shell][shell_img]][shell_link]
88

9-
> This module provides Cloud Debugger support for Node.js applications.
10-
Cloud Debugger is a feature of Google Cloud Platform that lets you debug your
9+
> This module provides Snapshot Debugger support for Node.js applications.
10+
Snapshot Debugger is an open source product that lets you debug your
1111
applications in production without stopping or pausing your application.
1212

13+
A Firebase Realtime Database instance is used to store your data.
14+
1315
## Table of Contents
1416

1517
* [Before you begin](#before-you-begin)

0 commit comments

Comments
 (0)