当前位置:网站首页>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
边栏推荐
猜你喜欢
Go study notes (Part 1) Configuring the Go development environment
五分钟入门文本处理三剑客grep awk sed
【AGC】构建服务1-云函数示例
WIN10系统如何开启终端
如何进行AI业务诊断,快速识别降本提效增长点?
Getting Started with Lattice Passwords
微信小程序云开发 | 赠、删、改城市名称信息的应用实现
JS new一个构造器发生了什么?从零手写一个new方法
漫画 | 老板裁掉我两周后,又把我请回去,工资翻番!
QT(41)-多线程-QTThread-同步QSemaphore-互斥QMutex
随机推荐
动态规划_双数组字符串
Force KouTi (5), the longest text string back
Feign 与 OpenFeign
Go study notes (Part 1) Configuring the Go development environment
使用 Chrome 开发者工具的 lighthouse 功能分析 web 应用的性能问题
MySQL stored procedure introduction, creation, case, delete, view "recommended collection"
MySQL field type
刷题-洛谷-P1200 你的飞碟在这儿Your Ride Is Here
漫画 | 老板裁掉我两周后,又把我请回去,工资翻番!
刷题-洛谷-P1304 哥德巴赫猜想
Embrace the Cmake child is simple and practical, but inflexible
Zero-knowledge proof - zkSNARK proof system
刷题-洛谷-P1179 数字统计
vs Code runs a local web server
Web3时代的战争
明明加了唯一索引,为什么还是产生了重复数据?
node 的运行命令
成品升级程序
使用 Allatori 进行 Jar 包混淆
JSD-2204-酷莎商城(管理员模块)-密码加密-Day10