---
source_url: https://www.pubnub.com/docs/sdks/arduino/troubleshooting
title: Troubleshooting Arduino SDK
updated_at: 2026-06-29T11:47:49.414Z
---

> 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 Arduino SDK

Currently there is only one troubleshooting feature in Pubnub Arduino SDK - logging.

## How to enable logging

By default, (debug) logging is off. Logging is turned on by defining `PUBNUB_DEBUG` preprocessor symbol. It will produce debug log (plain text) reports using the standard Serial object. Of course, you need to initialize the Serial object and make sure it works on your Arduino board.