首页 技术 正文
技术 2022年11月15日
0 收藏 891 点赞 3,525 浏览 753 个字

1 debbugeer for chrome的使用

下载安装,然后配置launch.json

{
"name": "Chrome",//名称
"type": "chrome",
"request": "launch",
"sourceMaps": false,//不用配置服务器,使用file协议
"file": "${file}" //启动本页面的环境变量
}

  然后就就可以设置断点啦(ps:貌似只能在外引的js里面设置)

  

2 配置node服务

  

            {
"type": "node",
"request": "launch",
"name": "node Program",
"program": "${file}"
}

  有其他好实用的插件欢迎推荐~

3、在vs code中如何调试vue项目

  首先按下F5,弹出launch.json文件,配置如下

  

{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "启动 Chrome 并打开 localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}",
"sourceMaps": true,
// "file": "${file}"
}
]
}

  然后在终端启动项目启动你的vue项目, 注意launch.json下的url要跟你的vue启动的的devserver的host+port一致

  启动好后你就可以开心的在你的编译器里面调试你的vue项目了

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,104
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,581
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,428
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,200
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,835
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,918