# Live reload, all code is unminifed so breakpoints can't be set

**URL:** <https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087>\
**Category:** Appflow\
**Created:** [February 3, 2022, 12:31pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087 "2022-02-03T12:31:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiverton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@chiverton](https://forum.ionicframework.com/u/chiverton)\
**Post date:** [February 3, 2022, 12:31pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/1 "2022-02-03T12:31:37Z")

</div>

I’m using the AppFlow Vue tabs demo project.

After I run `ionic capacitor run android -l --external` and launch the app from Android Studio, I can connect with Chrome dev tools to inspect the HTML/CSS

But all the JavaScript is minified so I can’t use break points.

e.g. top of App.js

```auto
/*
 * ATTENTION: An "eval-source-map" devtool has been used.
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
/ ****** / (function() { // webpackBootstrap
/ ****** / var __webpack_modules__ = ({

```

How can I stop this ?

---

<div class="post-metadata">

**Author:** ![Hills90210](https://avatars.discourse-cdn.com/v4/letter/h/57b2e6/32.png) [@Hills90210](https://forum.ionicframework.com/u/Hills90210)\
**Post date:** [February 3, 2022, 2:01pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/2 "2022-02-03T14:01:50Z")

</div>

> **[Debug JavaScript - Chrome Developers](https://developer.chrome.com/docs/devtools/javascript/)**
>
> Learn how to use Chrome DevTools to find and fix JavaScript bugs.

---

<div class="post-metadata">

**Author:** ![chiverton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@chiverton](https://forum.ionicframework.com/u/chiverton)\
**Post date:** [February 3, 2022, 2:32pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/3 "2022-02-03T14:32:49Z")

</div>

Thanks. Been debugging in Chrome for years though and that appears to be a generic howto.

What I actually thing I need to do is change a setting in ionic somewhere ?

---

<div class="post-metadata">

**Author:** ![Hills90210](https://avatars.discourse-cdn.com/v4/letter/h/57b2e6/32.png) [@Hills90210](https://forum.ionicframework.com/u/Hills90210)\
**Post date:** [February 3, 2022, 2:55pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/4 "2022-02-03T14:55:12Z")

</div>

I’ve never needed to do any change in ionic. it’s not an ionic setting to change, you need to search for the file where you want to add the break point. That’s why I added the link, which it shows you how to do that.

---

<div class="post-metadata">

**Author:** ![chiverton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@chiverton](https://forum.ionicframework.com/u/chiverton)\
**Post date:** [February 3, 2022, 2:59pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/5 "2022-02-03T14:59:45Z")

</div>

I think you might be misunderstanding.

There are no .map files, for instance.

Chrome’s remote inspect is totally unable to see anything of any use

 ![Screenshot_20220203_145925](https://global.discourse-cdn.com/ionicframework/original/3X/c/c/cc2a8e61c23796191542936f2d7ab8503264999b.png)

---

<div class="post-metadata">

**Author:** ![chiverton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@chiverton](https://forum.ionicframework.com/u/chiverton)\
**Post date:** [February 3, 2022, 5:24pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/7 "2022-02-03T17:24:42Z")

</div>

Sure, refresh away 🙂 I’ve certainly forgotten how you get meaningful source maps out of ionic.

---

<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:** [February 3, 2022, 7:20pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/8 "2022-02-03T19:20:39Z")

</div>

Hey there! Soo this might be a default setting for Vue’s CLI service. Looking through the vue-cli docs, you might need to add this to a `vue.config.js` file.

```auto
module.exports = {
    configureWebpack: {
        devtool: 'source-map'
    }
}

```

Could you give that a try?

---

<div class="post-metadata">

**Author:** ![chiverton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@chiverton](https://forum.ionicframework.com/u/chiverton)\
**Post date:** [February 4, 2022, 10:24am UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/9 "2022-02-04T10:24:04Z")

</div>

I don’t have a vue.config.json. Do I just make one with those lines in ?

You can get what I see as a project by choosing the Vue Tabs example when you start a new project in AppFlow

I don’t know if there’s a Git repo for it somewhere. Can’t seem to see one.

---

<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:** [February 4, 2022, 3:15pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/10 "2022-02-04T15:15:47Z")

</div>

Yes, just make a file for this. We don’t provide one with our vue template since the Vue CLI doesn’t provide (we try to match it as close as possible).

---

<div class="post-metadata">

**Author:** ![chiverton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@chiverton](https://forum.ionicframework.com/u/chiverton)\
**Post date:** [February 4, 2022, 3:36pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/11 "2022-02-04T15:36:53Z")

</div>

I put that in vue.config. **js**

closed Studio

re-ran `ionic capacitor run android -l --external`

waited while Studio opened and did it’s thing and then relauched the app

It’s changed, and it works as long as I navigate to the ‘(cloud) my-folder-name/src/views’ folder in the side bar.

Break points and inspect variables work as expected now, thanks !

I can see not wanting to drift to far from stock Vue, but maybe you should if it leads to a broken developer experience otherwise ?

---

<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:** [February 4, 2022, 3:43pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/12 "2022-02-04T15:43:16Z")

</div>

For sure! A valid point regarding DX. We’ll probably revisit our entire vue setup in the future as Vue-cli will soon be deprecated for Vite.

---

<div class="post-metadata">

**Author:** ![chiverton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@chiverton](https://forum.ionicframework.com/u/chiverton)\
**Post date:** [February 7, 2022, 10:04am UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/13 "2022-02-07T10:04:33Z")

</div>

I’m almost afraid to ask given the pace of change in JS frameworks, but what’s Vite ?

---

<div class="post-metadata">

**Author:** ![Hills90210](https://avatars.discourse-cdn.com/v4/letter/h/57b2e6/32.png) [@Hills90210](https://forum.ionicframework.com/u/Hills90210)\
**Post date:** [February 7, 2022, 6:31pm UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/14 "2022-02-07T18:31:46Z")

</div>

> **[Why Vite | Vite](https://vitejs.dev/guide/why.html)**
>
> Next Generation Frontend Tooling

---

<div class="post-metadata">

**Author:** ![chiverton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@chiverton](https://forum.ionicframework.com/u/chiverton)\
**Post date:** [February 8, 2022, 9:24am UTC](https://forum.ionicframework.com/t/live-reload-all-code-is-unminifed-so-breakpoints-cant-be-set/220087/15 "2022-02-08T09:24:00Z")

</div>

OK, so it’s just another build tool, that’s less to keep up to date with 🙂
