# Debug app code

**URL:** <https://community.homey.app/t/debug-app-code/33516>\
**Category:** Developers\
**Created:** [August 12, 2020, 8:59am UTC](https://community.homey.app/t/debug-app-code/33516 "2020-08-12T08:59:46Z")\
**Posts on this page:** 7\
**Page:** 3

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [February 9, 2025, 5:16pm UTC](https://community.homey.app/t/debug-app-code/33516/42 "2025-02-09T17:16:48Z")

</div>

Afaik the docker option is (solely) added to enable developing Homey Cloud apps.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [February 9, 2025, 5:23pm UTC](https://community.homey.app/t/debug-app-code/33516/43 "2025-02-09T17:23:20Z")

</div>

Yeah thanks Peter, I thought that as well, however interesting they made it default and as Robert mentioned, even “hiding” remote option.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [February 9, 2025, 5:31pm UTC](https://community.homey.app/t/debug-app-code/33516/44 "2025-02-09T17:31:58Z")

</div>

> [@Sharkys](#):
>
> interesting they made it default

Welcome to Athom!  
“_If Henry Ford asked what the people want, they’d say "faster horses_”

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [February 9, 2025, 6:03pm UTC](https://community.homey.app/t/debug-app-code/33516/45 "2025-02-09T18:03:27Z")

</div>

> [@Sharkys](#):
>
> Is there actually any benefit of running it on the docker instead of Homey itself?

YES! Only this way you can debug widgets in the browser using USB-Debugging.

> **[Debugging | Homey Apps SDK](https://apps.developer.homey.app/the-basics/widgets/debugging)**

But I use docker only to develop widgets. Then I can change html code on the fly and a reload of the widget in Chrome will directly use the changed code.

For everything else I use `--remote`.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [February 9, 2025, 6:19pm UTC](https://community.homey.app/t/debug-app-code/33516/46 "2025-02-09T18:19:41Z")

</div>

> [@RonnyW](#):
>
> Only this way you can debug widgets in the browser using USB-Debugging.

Thanks Ronny, actually yesterday I was debugging widget using _–remote_, just the Reload button is missing indeed and I guess you can’t debug widget setting anyway, or? But rest was working for me.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [February 9, 2025, 6:32pm UTC](https://community.homey.app/t/debug-app-code/33516/47 "2025-02-09T18:32:06Z")

</div>

With `--remote` you can still debug the app code.  
But using docker and USB-Debugging (Tablet/phone must be USB connected to the PC running docker), you can change and try your html directly without restarting the app. Just change the HTML in VSCode, Hit F5 in Chrome (PC) or Safari (iOS) and the widget is updated. Very easy to check CSS and HTML changes.

---

<div class="post-metadata">

**Author:** ![Baschte](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@Baschte](https://community.homey.app/u/Baschte)\
**Post date:** [February 9, 2025, 7:12pm UTC](https://community.homey.app/t/debug-app-code/33516/48 "2025-02-09T19:12:47Z")

</div>

Currently it works for me now also with the --remote option. However, somehow I can no longer make my breakpoints in the App.ts onInit function work. If I set a breakpoint in the Device.ts everything works wonderfully. Does anyone have an idea?

[Previous page](https://community.homey.app/t/debug-app-code/33516.md?page=2)
