[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
[//]: # "To regenerate it, use `python -m synthtool`."
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>

# [Cloud Debugger: Node.js Samples](https://github.com/googleapis/cloud-debug-nodejs)

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

> This module provides Snapshot Debugger support for Node.js applications.
Snapshot Debugger is an open source product that lets you debug your
applications in production without stopping or pausing your application.

A Firebase Realtime Database instance is used to store your data.

## Table of Contents

* [Before you begin](#before-you-begin)
* [Samples](#samples)
  * [App](#app)
  * [Snippets](#snippets)

## Before you begin

Before running the samples, make sure you've followed the steps outlined in
[Using the client library](https://github.com/googleapis/cloud-debug-nodejs#using-the-client-library).

`cd samples`

`npm install`

`cd ..`

## Samples



### App

View the [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/main/samples/app.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/app.js,samples/README.md)

__Usage:__


`node samples/app.js`


-----




### Snippets

View the [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/main/samples/snippets.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/snippets.js,samples/README.md)

__Usage:__


`node samples/snippets.js`






[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/README.md
[product-docs]: https://cloud.google.com/debugger
