- 在 VS 中断点调试
1、设置启动热重载
![](https://img-blog.csdnimg.cn/img_convert/3a5edd1a86ab443f873839d1e2f1d4ba.png)
2、官方说明一定要使用 Google Chrome 或者 Edge 浏览器,不然断点失效
![](https://img-blog.csdnimg.cn/img_convert/cc16c8ecaf484dcda138c98b80c1d39e.png)
- 在浏览器中断点调试
调试方式
- 只支持在 谷歌 、Edge 的浏览器中调试
- Win + R 打开命名然后找到浏览器的路径,跑下面的命令
"xxx\xxx\chrome.exe(浏览器的路径)" --remote-debugging-port=9222 http://localhost:52902/
然后按 Windows Shift+Alt+D 或者 Linux 按 Shift+Cmd+D .
![](https://img-blog.csdnimg.cn/img_convert/65f51a1969714b85b413e6c8151b4376.png)
![](https://img-blog.csdnimg.cn/img_convert/7165b35d6cbb438b892ac530ba697e52.png)
设置断点
![](https://img-blog.csdnimg.cn/img_convert/b5a03f4a3de1443d82a2c89452580a50.png)
![](https://img-blog.csdnimg.cn/img_convert/eabe72a8564c45fcbd1d2fa9dce1da2f.png)