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

Commit

Permalink
chore: release 3.0 (#37)
Browse files Browse the repository at this point in the history
* Update README with section on firebase backend
* Bump version number to 3.0
  • Loading branch information
jasonborg authored Oct 6, 2022
1 parent 2d2243d commit d7b41f5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
35 changes: 25 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ Note that the build script assumes some dependencies. To install these
dependencies, run this command:


**On Debian 8:**

```shell
sudo apt-get -y -q --no-install-recommends install \
curl gcc build-essential libssl-dev unzip openjdk-7-jdk \
cmake python maven
```

**On Debian 9:**

```shell
Expand Down Expand Up @@ -227,9 +219,8 @@ supports it. Either download the pre-packaged agent from
https://storage.googleapis.com/cloud-debugger/compute-java/debian-wheezy/cdbg_java_agent_service_account.tar.gz
or the locally built `cdbg_java_agent_service_account.tar.gz`

To use the service account credentials add these system properties:
To use the service account credentials add this system property:
<pre>
-Dcom.google.cdbg.auth.serviceaccount.enable=<i>true</i>
-Dcom.google.cdbg.auth.serviceaccount.jsonfile=<i>/opt/cdbg/gcp-svc.json</i>
</pre>

Expand Down Expand Up @@ -300,3 +291,27 @@ used in an expression as `MainKt.getGreeting()`
Companion object methods can be accessed by qualifying them with the `Companion`
keyword. For instance, the `welcome` function above can be used in an expression
as `Main.Companion.welcome()`

### Experimental Firebase Realtime Database Backend

This functionality is available for release 3.0 onward of this agent.

The agent can be configured to use Firebase Realtime Database as a backend
instead of the deprecated Cloud Debugger service. If the Firebase backend is
used, breakpoints can be viewed and set using the Snapshot Debugger CLI instead
of the Cloud Console.

To use the Firebase backend, set the following system properties:

```
-Dcom.google.cdbg.agent.use_firebase=True
```

Additional configuration can be provided if necessary:

```
-Dcom.google.cdbg.agent.use_firebase=True
-Dcom.google.cdbg.agent.firebase_db_url=https://my-database-url.firebaseio.com
```

See https://github.com/GoogleCloudPlatform/snapshot-debugger for more details.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public final class GcpDebugletVersion {
* <p>All agents of the same major version are compatible with each other. In other words an
* application can mix different agents with the same major version within the same debuggee.
*/
public static final int MAJOR_VERSION = 2;
public static final int MAJOR_VERSION = 3;

/** Minor version of the agent. */
public static final int MINOR_VERSION = 32;
public static final int MINOR_VERSION = 0;

/** Debugger agent version string in the format of MAJOR.MINOR. */
public static final String VERSION = String.format("%d.%d", MAJOR_VERSION, MINOR_VERSION);
Expand Down

0 comments on commit d7b41f5

Please sign in to comment.