From 821a7881d2853daeefc51640cad5ea889f19f096 Mon Sep 17 00:00:00 2001 From: Jason Borg Date: Wed, 17 May 2023 21:13:54 +0000 Subject: [PATCH] docs: Add extra info on Firebase configuration --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ec7582..0fe2ae8 100644 --- a/README.md +++ b/README.md @@ -303,12 +303,20 @@ instead of the 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: +The Firebase backend functionality can be configured either via system +properties or by passing flags directly to the agent: ``` -Dcom.google.cdbg.agent.use_firebase=True ``` +or + +``` +-agentpath:/opt/cdbg/cdbg_java_agent.so=--use_firebase=true + +``` + Additional configuration can be provided if necessary: ``` @@ -316,5 +324,11 @@ Additional configuration can be provided if necessary: -Dcom.google.cdbg.agent.firebase_db_url=https://my-database-url.firebaseio.com ``` +or + +``` +-agentpath:/opt/cdbg/cdbg_java_agent.so=-use_firebase=true,--firebase_db_url=https://my-database-url.firebaseio.com +``` + See https://github.com/GoogleCloudPlatform/snapshot-debugger and https://cloud.google.com/debugger/docs/deprecations for more details.