---
source_url: https://www.pubnub.com/docs/sdks/angular2/troubleshooting
title: Troubleshooting Angular2 SDK
updated_at: 2026-05-22T11:05:50.616Z
---

> Documentation Index
> For a curated overview of PubNub documentation, see: https://www.pubnub.com/docs/llms.txt
> For the full list of all documentation pages, see: https://www.pubnub.com/docs/llms-full.txt


# Troubleshooting Angular2 SDK

## How to enable logging

Set `logVerbosity` to true on initialization.

:::note
Always set the `UUID` to uniquely identify the user or device that connects to PubNub. This `UUID` should be persisted, and should remain unchanged for the lifetime of the user or the device. If you don't set the `UUID`, you won't be able to connect to PubNub.
:::

```javascript
var pubnub = new PubNub({
    subscribeKey: "mySubscribeKey",
    publishKey: "myPublishKey",
    logVerbosity: true,
    uuid: "myUniqueUUID"
});
```

:::note
Copy the logs from the console output of the browser as text and submit to [support@pubnub.com](https://www.pubnub.com/docs/mailto:support@pubnub.com)
:::