DEV Community

Yoman
Yoman

Posted on

VS Code debugging for web developer

Debugging in VS Code for web developers.

1.png

image-source: VS-Code website

What is VS Code.

Visual Studio Code is a light weight IDE for developing and debugging web applications or projects that run on javascript.Although by installing extensions you can extend the functionality to support different languages within the IDE. Vs Code is built on electronJs which is a JavaScript framework for building native desktop applications,Which means it comes with full support of running JavaScript applications for web developers.

Electron JS has main process and render process.Main process runs nodeJs in back-end whereas renderer process runs any web application using any web framework in JavaScript.

Intelligence and presets for web development

  • Suggests all the node commands to run directly from package.json file

2.png

  • The Debug tab on the left toolbar helps you to switch to debug mode instantly

3.png

  • Full support for GIT out of the box

4.png

  • Extensions to give more features for the existing IDE which is fully Customisable

5.png

  • Integrated terminal with multiple instances

6.png

  • Debug console to enable browser level js execution during debugging

7.png

  • Simple browser like view so you don’t have to learn again
  • put a debugger inline in the Editor.

8.png

  • simple controls to navigate through the debugging process

9.png

  • create your own environment by creating .vscode/launch.json file and maintaining the suggestion

10.png

  • Below is a sample nodejs configuration

11.png

Conclusion

Thanks, hope this helps you get basic idea for debugging web applications in VS Code . Read more here

Top comments (0)