当前位置:网站首页>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
边栏推荐
- Finished product upgrade program
- 如何手动下载并安装 Visual Studio Code 的 SAP Fiori tools - Extension Pack
- C#弹出询问对话框
- vim clear last search highlighting
- Apache服务器的配置[通俗易懂]
- C语言基础[通俗易懂]
- 刷题-洛谷-P1319 压缩技术
- Differences in the working mechanism between SAP E-commerce Cloud Accelerator and Spartacus UI
- Apache服务器配置多个站点
- 刷题-洛谷-P1179 数字统计
猜你喜欢
随机推荐
nr part calculation
五分钟入门文本处理三剑客grep awk sed
【SQL】触发器同步表数据
To -.-- -..- -
run command for node
If it is test axi dma catch a few words here
Tensorflow2 环境搭建
awk statistical difference record
蚂蚁集团时序数据库CeresDB正式开源
腾讯云胡启明:Kubernetes云上资源的分析与优化
composition-api
A complete cross-compilation environment records the shell scripts generated by peta
Force KouTi (5), the longest text string back
Seata source code analysis: various message processing processes of seata server
win10终端中如何切换磁盘
刷题-洛谷-P1179 数字统计
关于 SAP 电商云 Spartacus UI SSR 的 state transfer 问题
【TypeScript】深入学习TypeScript枚举
Elastic Search 根据匹配分和热度分排序
How to use the Chrome DevTools performance tab









