# Testing, debugging and troubleshooting
> Documentation for Testing, debugging and troubleshooting in the web tracker.
> Source: https://docs.snowplow.io/docs/sources/web-trackers/previous-versions/web-trackers-v3/testing-debugging/
> Documentation index: https://docs.snowplow.io/llms.txt
> Status: Previous version
> Current version: https://docs.snowplow.io/docs/sources/web-trackers/

## Testing your tracking implementation

To prevent data loss and bad events, it's important to test and validate your tracking implementation. Snowplow provides two main tools for this, which work well together.

### Snowplow Inspector for browsers

Use our [browser extension](/docs/testing/snowplow-inspector/) to inspect event requests in the browser Developer Tools window.

### Snowplow Micro

A [lightweight, local Snowplow pipeline](/docs/testing/snowplow-micro/) ideal for sending test events into. It's used as a Docker container.

## Debugging

Use the debugger plugin to automatically start printing out `debug` logs to your Developer Tools console. This will help you debug what events are being tracked and what properties are included in each event that is being tracked and to what tracker instance.

> **Note:** You may need to enable `Verbose` logs in your Developer Tools, as this plugin uses `console.debug` to output results.

An example of the output from this plugin:

![Browser Developer Tools console showing the Snowplow debugger plugin output, with color-coded entries for a Page View event, GDPR context, web\_page context, http\_client\_hints context, and full event payload](/assets/images/Screenshot-2021-03-28-at-20.08.35-ca0922b97b07198a894a3627e34ff92b.png)

### Install plugin

**JavaScript (tag):**

| Tracker Distribution | Included |
| -------------------- | -------- |
| `sp.js`              | ❌        |
| `sp.lite.js`         | ❌        |

**Download:**

|                                             |                                                                                                             |
| ------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| Download from GitHub Releases (Recommended) | [Github Releases (plugins.umd.zip)](https://github.com/snowplow/snowplow-javascript-tracker/releases)       |
| Available on jsDelivr                       | [jsDelivr](https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-debugger@3/dist/index.umd.min.js) (latest) |
| Available on unpkg                          | [unpkg](https://unpkg.com/@snowplow/browser-plugin-debugger@3/dist/index.umd.min.js) (latest)               |

**Note:** The links to the CDNs above point to the current latest version. You should pin to a specific version when integrating this plugin on your website if you are using a third party CDN in production.

```javascript
window.snowplow('addPlugin',
  "https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-debugger@3/dist/index.umd.min.js",
  ["snowplowDebugger", "DebuggerPlugin"]
);
```

**Browser (npm):**

- `npm install @snowplow/browser-plugin-debugger@3`
- `yarn add @snowplow/browser-plugin-debugger@3`
- `pnpm add @snowplow/browser-plugin-debugger@3`

```javascript
import { newTracker, trackPageView } from '@snowplow/browser-tracker';
import { DebuggerPlugin } from '@snowplow/browser-plugin-debugger';

newTracker('sp1', '{{collector_url}}', {
   appId: 'my-app-id',
   plugins: [ DebuggerPlugin() ],
});
```

***
