我使用带有设置脚本设置的Webstorm创建了新项目。然后,调试器断点不起作用。
nodeinterpreter节点12.10vue / cli 3.11.0
调试点在console.log(“ started”)]上>
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/>
</div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import HelloWorld from './components/HelloWorld.vue';
console.log("satarted")
@Component({
components: {
HelloWorld,
},
})
export default class App extends Vue {}
</script>
<style lang="scss">
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
然后单击调试按钮,但不要在断点处停止。
package.json, tsconfig.json
和其他文件是默认设置。
我使用带有设置脚本设置的Webstorm创建了新项目。然后,调试器断点不起作用。我的设置版本节点解释器节点12.10 vue / cli 3.11.0项目设置Babel ...
如果您的程序没有在断点处停止,通常意味着您的程序不执行断点所在的代码。或者您在寻找错误的位置。在前端应用程序中,可以通过按f12在浏览器中查看控制台。我还建议使用Vue Devtools扩展,它非常有用。