I'm stumped. I made a quick video showing the debugger evaluates the expression correctly, but when it's stepped over, it throws.
It's from a getter in a vue component accessing this.$store.state.Obj.value
Any suggestions on why would it evaluate correctly in the debugger console but throw when stepped over?
computed: {
mode: {
get: () => this.state.$store.getters.mode,
The this
evaluates to my component in the debugger, but throws when it is stepped over it.
FYI. I was trying to follow this pattern for making v-model work https://vuex.vuejs.org/guide/forms.html#two-way-computed-property
Try to use arrow function to catch error like this: