alansartlog writes:
Blender Debugger for VS Code is an addon for remote debugging Blender from Visual Studio Code.
You can find the full documentation in the link, or I have created a video tutorial showing how to install and use it for those who are maybe just starting to mess with Blender scripts and addons and aren't as familiar with Python, VS Code, and the command line.