How To Debug Javascript In Visual Studio Code With Live-server Running
Trying to debug a simple HTML and JavaScript project in Visual Studio Code. In the VS Code terminal window, 'live-server' is used to launch the 'index.html'. In VS Code, the 'Debug
Solution 1:
Works for me:
- Install Debugger for chrome extension on your VS Code.
- Install and activate Live Server extension on your VS Code.
- Press F5 and select Chrome:
- Check your Live Server port* and change the generated
launch.json
- Set your break points, run Live Server and press F5:
- Enjoy :)
- To check your Live Server port:
- Install Live Server & reload VS Code.
- Go to Preferences > Extensions > Live Server Config
- Scroll down to find Settings: Port and click "Edit in settings.json". Then you'll see the port number.
Post a Comment for "How To Debug Javascript In Visual Studio Code With Live-server Running"