# 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:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [August 12, 2020, 10:42am UTC](https://community.homey.app/t/debug-app-code/33516/2 "2020-08-12T10:42:06Z")

</div>

> [@avd88](#):
>
> But I’m missing the part of debugging code, is it possible to step into the code with breakpoints while running the app in homey? If so, how can it be done?

You can add the following line of code to the top of `app.js`:

```auto
require('inspector').open(9229, '0.0.0.0')

```

That will start the [V8 inspector](https://nodejs.org/api/inspector.html) when the app gets started, and you can interact with it from a regular Chrome browser (open `chrome://inspect/` and it should be able to find it).

I have no idea if/how this works in combination with VScode. Also, make sure to remove that line from the code once you’re ready to publish the app.

---

_[View the full topic](https://community.homey.app/t/debug-app-code/33516)._
