You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
## Using Stackdriver Debugger on Google Cloud Functions
193
+
194
+
The Stackdriver Debugger also introduces a new `isReady` method that returns a `Promise` that is resolved in either of the three scenarios.
195
+
1. The debug agent has received snapshot information from the Stackdriver service.
196
+
2. The last snapshot received from Stackdriver service is relatively recent.
197
+
3. The debug agent has determined that it is not possible to receive snapshot information.
198
+
199
+
In order for Stackdriver Debugger to work on GCF, users should call the `isReady` function and wait for the returned `Promise` to resolve before exiting the cloud function. The purpose of this is to allow the Debug Agent enough time to sync reasonably up-to-date snapshot information; in most cases this is instantaneous and the worst (rare) case is to delay up to 40 seconds.
* The root directory of your application needs to contain a `package.json` file.
194
213
* You can set snapshot conditions and watch expressions to be evaluated in the context of your application. This leads to some issues you should be aware of
0 commit comments