当前位置:网站首页>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
边栏推荐
- Zero-knowledge proof notes - private transaction, pederson, interval proof, proof of ownership
- SAP 电商云 Accelerator 和 Spartacus UI 的工作机制差异
- Seata source code analysis: various message processing processes of seata server
- 六月 致 -.-- -..- -
- [Awards for Essays] Autumn recruitment special training to create your exclusive product experience
- 使用 Chrome 开发者工具的 lighthouse 功能分析 web 应用的性能问题
- Web3时代的战争
- 取证程序分类
- 微信小程序云开发 | 赠、删、改城市名称信息的应用实现
- 二叉树是否对称
猜你喜欢
随机推荐
win10 uwp 使用 ScaleTransform 放大某个元素
取证程序分类
MySQL字段类型
新式茶饮,卷完水果还能卷什么?
零知识证明笔记——私密交易,pederson,区间证明,所有权证明
Desthiobiotin-PEG4-Azide_脱硫生物素-叠氮化物 100mg
多商户商城系统功能拆解22讲-平台端分销商品
刷题-洛谷-P1317 低洼地
实现菜单拖拽排序
遇到MapStruct后,再也不手写PO,DTO,VO对象之间的转换了
SAP 电商云 Accelerator 和 Spartacus UI 的工作机制差异
Embrace the Cmake child is simple and practical, but inflexible
零知识证明——zkSNARK证明体系
ASP.NET商贸进销存管理系统源码(带数据库文档)源码免费分享
DICOM医学影像协议
Aura clock chip generation configuration file script
格密码入门
力扣题(5)—— 最长回文子串
Unreal 本地化 国家化 多语言
基于Nodejs的电商管理平台的设计和实现