VSCode: The Top Open-Source IDE for Developers and its Versatile Debugging Capabilities
âFree. Built on open source. Runs everywhere.â This is how Microsoft describes its integrated Development Environment (IDE). With more than 145k stars, VSCode, or Visual Studio Code, has rapidly become one of the most popular open-source tools.
According to the 2019 Developers Survey, VSCode was ranked as the top choice by 50% of the 87,000 respondents. In the 2021 Developers Survey, it continued to hold the top position, with 74.5% of the 71,000 respondents using it. The figure confidently increased to 74.48% out of the 71,010 total responses in the 2022 survey.
This is no surprise, Visual Studio Code provides comprehensive code editing, navigation, and understanding support along with lightweight debugging, a rich extensibility model, and lightweight integration with existing tools.
It combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle.
One of the key aspects of VSCode is its ease of extension. So when it comes to debugging, this means users can either use the built-in debugging tools or install debugging extensions to add more features and make their debugging experience richer and more customized to their needs.
In this article, we will explore both approaches: debugging using the built-in tools, as well as using an external extension.
Debugging Code With VSCode: Features and Limitations
One of the most significant selling points of Visual Studio Code is its exceptional debugging support. With a multitude of debugging tools at its disposal, VS Code's built-in debugger is designed to help developers streamline the editing-compiling-debugging loop.
VS Code comes with built-in debugging support for JavaScript, TypeScript, and any other language that gets transpiled to JavaScript, using the Node.js runtime. If you want to debug other languages and runtimes such as PHP, Ruby, Go, C#, Python, C++, PowerShell, and many others, you can find official and third-party debuggers extensions in the VSCode Marketplace or select Install Additional Debuggers in the top-level Run menu.