Comments (2)
新年好啊!不过我没看太懂问题里的意思,是指在浏览器里断点后没有关联到 VSCode 里的源码吗?
可以尝试在项目根目录下创建一个 .vscode
文件夹,添加一个 launch.json
,写入下面的配置:
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "针对 localhost 启动 Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
}
]
}
启动本地服务后,点这里唤起调试,这样运行后在浏览器里打的断点就会和编辑器关联了,断点到了哪里,源码也会对应的高亮。
from learning-vue3.
我按照大佬的方法试了一下我从github上找的项目,还是不行,然后我自己建了一个脚手架试了一下可以加上断点,vscode上不加这个文件,不启动也可以断点到源代码。
然后我加断点加在44行,断点会加在86行。执行的时候也是在86行断点。
可能还是有哪些配置没开启导致的这个问题。非常感谢大佬百忙之中的解答,嘿嘿。
from learning-vue3.
Related Issues (20)
- 要不要讲一讲 pug 和 ref 糖? HOT 6
- Good tutorial~ HOT 1
- 大佬快来 HOT 2
- feat: 建议更新官方文档链接说明 HOT 2
- Comments on the typescript page HOT 25
- Comments on the engineering page HOT 10
- Comments on the plugin page HOT 1
- 这里是而??的DOM ? HOT 1
- typescript 相应写成了响应 HOT 1
- 大佬 您个人网站是用node写的后端吗 HOT 3
- vue.chengpeiquan.com无法访问 HOT 1
- 请问 https://vue3.chengpeiquan.com 这个网站是用那个UI框架做的? HOT 1
- How to contribute articles to this repo? HOT 1
- 建议代码块上面加上代码的文件名字 HOT 1
- 创建npm包那一节过于晦涩,不好懂 HOT 2
- 直接就是这内容开头,是不是缺少了什么? `的 build script 无需修改 ` HOT 1
- 通信那里感觉写的很一般,Composition API 用起来非常简洁 HOT 1
- 希望增加一个描述通过preset生成的vue-ts-vite项目的解析 HOT 2
- 关于教案的主题风格 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learning-vue3.