# VS Code, debug with live reload... possible?

**URL:** <https://forum.ionicframework.com/t/vs-code-debug-with-live-reload-possible/114499>\
**Category:** ionic-v3\
**Created:** [December 6, 2017, 6:27am UTC](https://forum.ionicframework.com/t/vs-code-debug-with-live-reload-possible/114499 "2017-12-06T06:27:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DetectiveConan](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/detectiveconan/32/115487_2.png) [@DetectiveConan](https://forum.ionicframework.com/u/DetectiveConan)\
**Post date:** [December 6, 2017, 6:27am UTC](https://forum.ionicframework.com/t/vs-code-debug-with-live-reload-possible/114499/1 "2017-12-06T06:27:58Z")

</div>

When I manually started it with the “–livereload” argument, when I changed a line and saved it, the change was reflected on the device in seconds. Now that I started it with VS Code’s Debug menu, live reload does not work. Is that possible?

In the launch.json, I used something like this (generated by VS Code, modified by me slightly.

```
    {
        "name": "Run android on device",
        "type": "cordova",
        "request": "launch",
        "platform": "android",
        "target": "device",
        "sourceMaps": true,
        "cwd": "${workspaceRoot}"
    }
```

---

<div class="post-metadata">

**Author:** ![mitch42](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mitch42/32/123124_2.png) [@mitch42](https://forum.ionicframework.com/u/mitch42)\
**Post date:** [September 25, 2018, 9:29am UTC](https://forum.ionicframework.com/t/vs-code-debug-with-live-reload-possible/114499/2 "2018-09-25T09:29:05Z")

</div>

If you install the Cordova Tools extension for Visual studio, it will help you generate a working launch.json file for your VSCode to be able to debug your app with livereload.

Here is how it looks like for Running Android on a device:

```auto
    {
      "name": "Run Android on device",
      "type": "cordova",
      "request": "launch",
      "platform": "android",
      "target": "device",
      "port": 9222,
      "sourceMaps": true,
      "cwd": "${workspaceRoot}",
      "ionicLiveReload": true
    },

```

If you want to make it work with an iOS simulator or device, you’ll need to install the [iOS Webkit Debug Proxy](https://github.com/google/ios-webkit-debug-proxy).

I struggled for so long to make this work that I did an entire article on my blog to make it simpler for others: [https://geeklearning.io/live-debug-your-cordova-ionic-application-with-visual-studio-code/](https://geeklearning.io/live-debug-your-cordova-ionic-application-with-visual-studio-code/)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 10:00pm UTC](https://forum.ionicframework.com/t/vs-code-debug-with-live-reload-possible/114499/3 "2021-07-19T22:00:44Z")

</div>

Closed on July 19, 2021, 10:00pm UTC


