当前位置:网站首页>Debug locally and start the local server in vs code
Debug locally and start the local server in vs code
2022-08-04 20:25:00 【Full stack programmer webmaster】
Hello everyone, meet again, I'm your friend Quanstack Jun.
1 Debugging locally in vs code 1. First install a plugin on VSCode: Debugger for Chrome, as shown in the following figure: Enter Debugger for Chrome in the search box and click Install
2. For the configuration file, click the buttons in the red circle from left to right, and then the launch.json file will appear, and add configuration information in it.There will be a previously configured name, here is "Debug with native chrom"
4. After selecting the name, press F5 directly, the browser interface will pop up, and you can debug the image The above configuration has not opened the server, the above operation is equivalent to opening the interface directly in the browser
Two open the local server
1. Open VS Code, then click "View" => "Debug Console" or directly press the shortcut key ctrl+shift+y to bring up the control panel
2. Click "Terminal" and directly enter npm install -g live-server in it to install live-server globally npm install -g live-server
3. After the installation is complete, the version information of the live-server will appear, indicating that the installation is successful
4. Enter in the terminal: live-server and the following information will appear
Then directly in the browser pop-up interface, select the running file
Publisher: Full-stack programmer, please indicate the source: https://javaforall.cn/106437.htmlOriginal link: https://javaforall.cn
边栏推荐
- How to carry out AI business diagnosis and quickly identify growth points for cost reduction and efficiency improvement?
- 使用 Allatori 进行 Jar 包混淆
- 使用 Chrome 开发者工具 coverage 功能分析 web 应用的渲染阻止资源的执行分布情况
- CAS :80750-24-9(脱硫生物素 NHS 酯)
- Retrofit的使用及原理详解
- 小软件大作用 | 如何省时省力进行Gerber图层快速对比?
- c sqlite...
- 五分钟入门文本处理三剑客grep awk sed
- 取证程序分类
- 刷题-洛谷-P1179 数字统计
猜你喜欢
Chrome安装zotero connector 插件
【Web漏洞探索】跨站脚本漏洞
How to promote the implementation of rural revitalization
五分钟入门文本处理三剑客grep awk sed
linkboy 5.0 正式发布,新增语音识别、图像识别
Go study notes (Part 1) Configuring the Go development environment
QT(41)-多线程-QTThread-同步QSemaphore-互斥QMutex
Zero-knowledge proof notes - private transaction, pederson, interval proof, proof of ownership
深度解析:为什么跨链桥又双叒出事了?
Desthiobiotin衍生物Desthiobiotin-PEG4-Amine/Alkyne/Azide/DBCO
随机推荐
如何找到某个 ABAP structure 某字段的源头来自哪个数据库表
Getting Started with Lattice Passwords
Order of lds links
5 g NR notes
Red5搭建直播平台
If it is test axi dma catch a few words here
如何进行AI业务诊断,快速识别降本提效增长点?
How to promote the implementation of rural revitalization
EasyUi常用代码
The establishment of simple data cache layer
ASP.NET商贸进销存管理系统源码(带数据库文档)源码免费分享
KubeSphere简介,功能介绍,优势,架构说明及应用场景
新式茶饮,卷完水果还能卷什么?
使用 Chrome 开发者工具 coverage 功能分析 web 应用的渲染阻止资源的执行分布情况
使用百度EasyDL实现森林火灾预警识别
2022年国内手机满意度榜单:华为稳坐国产品牌第一
node 的运行命令
零知识证明笔记——私密交易,pederson,区间证明,所有权证明
Finished product upgrade program
win10 uwp 使用 ScaleTransform 放大某个元素