Open links in new tab
  1. You can debug Python scripts, web apps, and remote processes in VS Code using the Python Debugger extension, which comes with the Python extension. Configurations are stored in a launch.json file inside the .vscode folder of your workspace.

    Setting Up and Starting a Debug Session

    1. Open the Extensions view (Ctrl+Shift+X / ⇧⌘X) and verify that Python Debugger is installed.

    2. Open your project folder in VS Code; debugging requires code to be in a folder.

    3. Select the Run view (Ctrl+Shift+D / ⇧⌘D) from the sidebar.

    4. If no configuration exists, click Run and Debug or create a launch.json file.

    5. Choose Python Debugger from the debugger list.

    6. In the Command Palette menu, select Python File to debug the current script.

    7. VS Code creates and opens launch.json with a pre-filled configuration; edit it if needed (e.g., add arguments).

    8. Press F5 or click Start Debugging to begin the session.

    Using Breakpoints and Debug Controls

    1. Click in the gutter next to a line number to set a breakpoint.

    2. Use Conditional Breakpoints by right-clicking a breakpoint and adding an expression or hit count.

    3. Control execution with:

      • Continue (F5), Step Over (F10), Step Into (F11), Step Out (Shift+F11).

    4. Inspect variables by hovering over them or using the Variables pane.

    5. Use the Debug Console to evaluate expressions in the current context.

  1. Python debugging in VS Code

    • See More

    Details on configuring the Visual Studio Code debugger for different Python applications.

    • Software Version: 1.97
    • How to debug a python module in VSCode

      Jul 23, 2025 · Visual Studio Code (VSCode) is a powerful, free code editor that offers robust debugging capabilities for Python. This article will guide you …

    • Python in VSCode: Running and Debugging

      • Debugging is one of those features that makes an IDE more powerful than a simple editor. It’s not hard to do and can save you many hours of frantically adding print statements to your code. So let us spend a little effort on learning the basics right now!
      See more on python.land
    • visual studio code - VSCode Python debugger runs but …

      Feb 20, 2024 · I have recently bought a new laptop and set up VSCode and Python …

      • Reviews: 2
      • 10.3. Debugging in VS Code — Python for Nanobiologists

        In this section, we will cover the basic debugging features in VS Code: breakpoints, single stepping, and viewing variables. We also offer some additional reading on more advanced debugger features in VS …

      • Python debugger (debugpy) extension for VS Code.

        A Visual Studio Code extension that supports Python debugging with debugpy. Python Debugger provides a seamless debugging experience by allowing you to …

      • Debugging Python in Visual Studio Code: A Comprehensive Guide

        Apr 22, 2025 · This blog post will guide you through the process of debugging Python in VSCode, covering fundamental concepts, usage methods, common practices, and best practices.

      • Debugging Python in VSCode: Everything You Need to …

        Jan 26, 2026 · Debugging Python in VSCode: Everything You Need to Know! 1. Stop printing, start using Vscode Debugger. If you are still debugging your Python …

      • Mastering Python Debugging in Visual Studio Code

        Jan 16, 2026 · Visual Studio Code (VSCode) is a popular and powerful code editor that offers robust debugging capabilities for Python. In this blog post, we will explore the fundamental concepts, usage …