Debug JS trong Visual Studio:
- Mở Visual Studio, chọn project trong Solution Explorer.
- Right-click > Browse With > set default browser (Chrome/Edge).
- Mở Internet Options (Win + R >
inetcpl.cpl). - Tab Advanced > Bỏ tick Disable script debugging (Internet Explorer) và Disable script debugging (Other).

- Apply > OK.
- Đặt breakpoint trong file .js.
- Nhấn F5 (Start Debugging).