# ESP8266 sketch does not compile when using debug watch

**URL:** <https://forum.xod.io/t/esp8266-sketch-does-not-compile-when-using-debug-watch/4423>\
**Category:** XOD Programming Questions\
**Created:** [September 14, 2020, 1:55pm UTC](https://forum.xod.io/t/esp8266-sketch-does-not-compile-when-using-debug-watch/4423 "2020-09-14T13:55:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![williamobrien-sk](https://avatars.discourse-cdn.com/v4/letter/w/74df32/32.png) [@williamobrien-sk](https://forum.xod.io/u/williamobrien-sk)\
**Post date:** [September 14, 2020, 1:55pm UTC](https://forum.xod.io/t/esp8266-sketch-does-not-compile-when-using-debug-watch/4423/1 "2020-09-14T13:55:01Z")

</div>

If I add a debug watch window to ESP8266 (wemos mini) sketches it results in the following error

_note: in expansion of macro ‘F’_

- 

```
    XOD_DEBUG_SERIAL.print(F("ERR"));*

```

- 

```
                                                   ^*

```

Without the debug watch the sketch uploads and works fine.

Is there a particular setting that is needed to get debug watch working for ESP8266 boards?

Thanks

---

<div class="post-metadata">

**Author:** ![williamobrien-sk](https://avatars.discourse-cdn.com/v4/letter/w/74df32/32.png) [@williamobrien-sk](https://forum.xod.io/u/williamobrien-sk)\
**Post date:** [September 14, 2020, 2:41pm UTC](https://forum.xod.io/t/esp8266-sketch-does-not-compile-when-using-debug-watch/4423/2 "2020-09-14T14:41:00Z")

</div>

Update. It now works after updating the Arduino packages and toolchains under the Deploy tab.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [September 16, 2020, 2:41pm UTC](https://forum.xod.io/t/esp8266-sketch-does-not-compile-when-using-debug-watch/4423/3 "2020-09-16T14:41:06Z")

</div>

Closed on September 16, 2020, 2:41pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
