当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
A complete cross-compilation environment records the shell scripts generated by peta
C#弹出询问对话框
Retrofit的使用及原理详解
腾讯云胡启明:Kubernetes云上资源的分析与优化
Use "green computing" technology to promote sustainable development of computing power
C#将对象转换为Dictionary字典集合
构建Buildroot根文件系统(I.MX6ULL)
阿里的arthas使用,入门报错:Unable to attach to 32-bit process running under WOW64
idea源码无法下载
蚂蚁集团时序数据库CeresDB正式开源
really time ntp service start command
"WAIC 2022 · hackers marathon" two ants wealth competition invited you to fight!
Quantitative trading robot system development
JSD-2204-酷莎商城(管理员模块)-密码加密-Day10
Embrace the Cmake child is simple and practical, but inflexible
Order of lds links
run command for node
Nuxt.js的优缺点和注意事项
新式茶饮,卷完水果还能卷什么?
LED的C语言应用程序









