Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Python Debug ToolsNew to Visual Studio Code? Get it now.
Python Debug Tools

Python Debug Tools

Bigodf

|
292 installs
| (0) | Free
python debug tools
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Python Debug Tools

There are some tools for debugging python scripts in this extension. Now there is only one tools command: generate module path of the current file

Commonds

1. Generate Python Module

This commond returns a string of module path of the current python script file. When you need to debug a python script as module, you must add a configuration in launch.json, and set the module parameter to module path. When debugging many scripts, you must change the module parameter each time! That's suffering!

With this command, you just set the module parameter with '{command:pythondebugtools.genModulePath}', and VSCode will automatically debug the current script file as a module. The config file should be like this:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python Debugger: Module",
            "type": "debugpy",
            "request": "launch",
            "module": "${command:pythondebugtools.genModulePath}"
        }
    ]
}

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft