{ "name": "debugpy", "displayName": "Python Debugger", "description": "Python Debugger extension using debugpy.", "version": "2024.6.0", "publisher": "ms-python", "enabledApiProposals": [ "portsAttributes", "contribIssueReporter", "debugVisualization" ], "license": "MIT", "homepage": "https://github.com/Microsoft/vscode-python-debugger", "repository": { "type": "git", "url": "https://github.com/microsoft/vscode-python-debugger.git" }, "bugs": { "url": "https://github.com/Microsoft/vscode-python-debugger/issues" }, "icon": "icon.png", "keywords": [ "python", "debugger", "debugpy" ], "engines": { "vscode": "^1.87.0" }, "categories": [ "Debuggers" ], "activationEvents": [ "onDebugInitialConfigurations", "onDebugDynamicConfigurations:debugpy", "onDebugResolve:debugpy", "onLanguage:python" ], "main": "./dist/extension.js", "l10n": "./l10n", "contributes": { "commands": [ { "category": "Python Debugger", "command": "debugpy.debugInTerminal", "icon": "$(debug-alt)", "title": "%debugpy.command.debugInTerminal.title%" }, { "category": "Python Debugger", "command": "debugpy.debugUsingLaunchConfig", "icon": "$(debug-alt)", "title": "%debugpy.command.debugUsingLaunchConfig.title%" }, { "category": "Python Debugger", "command": "debugpy.clearCacheAndReload", "title": "%debugpy.command.clearCacheAndReload.title%" }, { "category": "Python Debugger", "command": "debugpy.viewOutput", "icon": { "dark": "resources/dark/repl.svg", "light": "resources/light/repl.svg" }, "title": "%debugpy.command.viewOutput.title%" }, { "category": "Python Debugger", "command": "debugpy.reportIssue", "title": "%debugpy.command.reportIssue.title%" } ], "menus": { "issue/reporter": [ { "command": "debugpy.reportIssue" } ], "commandPalette": [ { "category": "Python Debugger", "command": "debugpy.clearCacheAndReload", "title": "%debugpy.command.clearCacheAndReload.title%" }, { "category": "Python Debugger", "command": "debugpy.debugInTerminal", "icon": "$(debug-alt)", "title": "%debugpy.command.debugInTerminal.title%", "when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python" }, { "category": "Python Debugger", "command": "debugpy.debugUsingLaunchConfig", "icon": "$(debug-alt)", "title": "%debugpy.command.debugUsingLaunchConfig.title%", "when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python" }, { "category": "Python Debugger", "command": "debugpy.viewOutput", "title": "%debugpy.command.viewOutput.title%" }, { "category": "Python Debugger", "command": "debugpy.reportIssue", "title": "%debugpy.command.reportIssue.title%", "when": "!virtualWorkspace && shellExecutionSupported" } ], "editor/title/run": [ { "command": "debugpy.debugInTerminal", "title": "%debugpy.command.debugInTerminal.title%", "when": "resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported" }, { "command": "debugpy.debugUsingLaunchConfig", "title": "%debugpy.command.debugUsingLaunchConfig.title%", "when": "resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported" } ] }, "configuration": { "properties": { "debugpy.debugJustMyCode": { "default": true, "description": "%debugpy.debugJustMyCode%", "scope": "resource", "type": "boolean" } }, "title": "Python Debugger", "type": "object" }, "debuggers": [ { "configurationAttributes": { "attach": { "properties": { "connect": { "label": "Attach by connecting to debugpy over a socket.", "properties": { "host": { "default": "127.0.0.1", "description": "Hostname or IP address to connect to.", "type": "string" }, "port": { "description": "Port to connect to.", "type": [ "number", "string" ] } }, "required": [ "port" ], "type": "object" }, "debugAdapterPath": { "description": "Path (fully qualified) to the python debug adapter executable.", "type": "string" }, "django": { "default": false, "description": "Django debugging.", "type": "boolean" }, "jinja": { "default": null, "description": "Jinja template debugging (e.g. Flask).", "enum": [ false, null, true ] }, "justMyCode": { "default": true, "description": "If true, show and debug only user-written code. If false, show and debug all code, including library calls.", "type": "boolean" }, "listen": { "label": "Attach by listening for incoming socket connection from debugpy", "properties": { "host": { "default": "127.0.0.1", "description": "Hostname or IP address of the interface to listen on.", "type": "string" }, "port": { "description": "Port to listen on.", "type": [ "number", "string" ] } }, "required": [ "port" ], "type": "object" }, "logToFile": { "default": false, "description": "Enable logging of debugger events to a log file. This file can be found in the debugpy extension install folder.", "type": "boolean" }, "pathMappings": { "default": [], "items": { "label": "Path mapping", "properties": { "localRoot": { "default": "${workspaceFolder}", "label": "Local source root.", "type": "string" }, "remoteRoot": { "default": "", "label": "Remote source root.", "type": "string" } }, "required": [ "localRoot", "remoteRoot" ], "type": "object" }, "label": "Path mappings.", "type": "array" }, "processId": { "anyOf": [ { "default": "${command:pickProcess}", "description": "Use process picker to select a process to attach, or Process ID as integer.", "enum": [ "${command:pickProcess}" ] }, { "description": "ID of the local process to attach to.", "type": "integer" } ] }, "redirectOutput": { "default": true, "description": "Redirect output.", "type": "boolean" }, "showReturnValue": { "default": true, "description": "Show return value of functions when stepping.", "type": "boolean" }, "subProcess": { "default": false, "description": "Whether to enable Sub Process debugging", "type": "boolean" }, "consoleName": { "default": "Python Debug Console", "description": "Display name of the debug console or terminal", "type": "string" } } }, "launch": { "properties": { "args": { "default": [], "description": "Command line arguments passed to the program. For string type arguments, it will pass through the shell as is, and therefore all shell variable expansions will apply. But for the array type, the values will be shell-escaped.", "items": { "type": "string" }, "anyOf": [ { "default": "${command:pickArgs}", "enum": [ "${command:pickArgs}" ] }, { "type": [ "array", "string" ] } ] }, "autoReload": { "default": {}, "description": "Configures automatic reload of code on edit.", "properties": { "enable": { "default": false, "description": "Automatically reload code on edit.", "type": "boolean" }, "exclude": { "default": [ "**/.git/**", "**/.metadata/**", "**/__pycache__/**", "**/node_modules/**", "**/site-packages/**" ], "description": "Glob patterns of paths to exclude from auto reload.", "items": { "type": "string" }, "type": "array" }, "include": { "default": [ "**/*.py", "**/*.pyw" ], "description": "Glob patterns of paths to include in auto reload.", "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "console": { "default": "integratedTerminal", "description": "Where to launch the debug target: internal console, integrated terminal, or external terminal.", "enum": [ "externalTerminal", "integratedTerminal", "internalConsole" ] }, "cwd": { "default": "${workspaceFolder}", "description": "Absolute path to the working directory of the program being debugged. Default is the root directory of the file (leave empty).", "type": "string" }, "debugAdapterPath": { "description": "Path (fully qualified) to the Python debug adapter executable.", "type": "string" }, "autoStartBrowser": { "default": false, "description": "Open external browser to launch the application", "type": "boolean" }, "django": { "default": false, "description": "Django debugging.", "type": "boolean" }, "env": { "additionalProperties": { "type": "string" }, "default": {}, "description": "Environment variables defined as a key value pair. Property ends up being the Environment Variable and the value of the property ends up being the value of the Env Variable.", "type": "object" }, "envFile": { "default": "${workspaceFolder}/.env", "description": "Absolute path to a file containing environment variable definitions.", "type": "string" }, "gevent": { "default": false, "description": "Enable debugging of gevent monkey-patched code.", "type": "boolean" }, "jinja": { "default": null, "description": "Jinja template debugging (e.g. Flask).", "enum": [ false, null, true ] }, "justMyCode": { "default": true, "description": "Debug only user-written code.", "type": "boolean" }, "logToFile": { "default": false, "description": "Enable logging of debugger events to a log file. This file can be found in the debugpy extension install folder.", "type": "boolean" }, "module": { "default": "", "description": "Name of the module to be debugged.", "type": "string" }, "pathMappings": { "default": [], "items": { "label": "Path mapping", "properties": { "localRoot": { "default": "${workspaceFolder}", "label": "Local source root.", "type": "string" }, "remoteRoot": { "default": "", "label": "Remote source root.", "type": "string" } }, "required": [ "localRoot", "remoteRoot" ], "type": "object" }, "label": "Path mappings.", "type": "array" }, "program": { "default": "${file}", "description": "Absolute path to the program.", "type": "string" }, "purpose": { "default": [], "description": "Tells extension to use this configuration for test debugging, or when using debug-in-terminal command.", "items": { "enum": [ "debug-test", "debug-in-terminal" ], "enumDescriptions": [ "Use this configuration while debugging tests using test view or test debug commands.", "Use this configuration while debugging a file using debug in terminal button in the editor." ] }, "type": "array" }, "pyramid": { "default": false, "description": "Whether debugging Pyramid applications.", "type": "boolean" }, "python": { "default": "${command:python.interpreterPath}", "description": "Absolute path to the Python interpreter executable; overrides workspace configuration if set.", "type": "string" }, "pythonArgs": { "default": [], "description": "Command-line arguments passed to the Python interpreter. To pass arguments to the debug target, use \"args\".", "items": { "type": "string" }, "type": "array" }, "redirectOutput": { "default": true, "description": "Redirect output.", "type": "boolean" }, "showReturnValue": { "default": true, "description": "Show return value of functions when stepping.", "type": "boolean" }, "stopOnEntry": { "default": false, "description": "Automatically stop after launch.", "type": "boolean" }, "subProcess": { "default": false, "description": "Whether to enable Sub Process debugging.", "type": "boolean" }, "sudo": { "default": false, "description": "Running debug program under elevated permissions (on Unix).", "type": "boolean" }, "guiEventLoop": { "default": "matplotlib", "description": "The GUI event loop that's going to run. Possible values: \"matplotlib\", \"wx\", \"qt\", \"none\", or a custom function that'll be imported and run.", "type": "string" }, "consoleName": { "default": "Python Debug Console", "description": "Display name of the debug console or terminal", "type": "string" } } } }, "configurationSnippets": [], "label": "Python Debugger", "languages": [ "python" ], "type": "debugpy", "variables": { "pickProcess": "debugpy.pickLocalProcess", "pickArgs": "debugpy.pickArgs" }, "when": "!virtualWorkspace && shellExecutionSupported" } ], "debugVisualizers": [ { "id": "inlineHexDecoder", "when": "debugConfigurationType == 'debugpy' && (variableType == 'float' || variableType == 'int')" } ] }, "extensionDependencies": [ "ms-python.python" ], "scripts": { "vscode:prepublish": "npm run package", "compile": "webpack", "watch": "webpack --watch", "package": "webpack --mode production --devtool hidden-source-map", "compile-tests": "tsc -p . --outDir out", "watch-tests": "tsc -p . -w --outDir out", "pretest": "npm run compile-tests && npm run compile && npm run lint", "lint": "eslint src --ext ts", "format-check": "prettier --check 'src/**/*.ts' 'build/**/*.yml' '.github/**/*.yml'", "format-fix": "prettier --write 'src/**/*.ts' 'build/**/*.yml' '.github/**/*.yml'", "test": "node ./out/test/runTest.js", "vsce-package": "npx @vscode/vsce package -o python-debugger.vsix" }, "devDependencies": { "@types/chai": "^4.3.4", "@types/chai-as-promised": "^7.1.8", "@types/fs-extra": "^11.0.4", "@types/glob": "^7.2.0", "@types/lodash": "^4.14.191", "@types/mocha": "^10.0.1", "@types/node": "18.x", "@types/semver": "^7.3.13", "@types/sinon": "^10.0.13", "@types/vscode": "^1.87.0", "@typescript-eslint/eslint-plugin": "^5.31.0", "@typescript-eslint/parser": "^5.62.0", "@vscode/test-electron": "^2.3.9", "@vscode/vsce": "^2.24.0", "chai": "^4.3.7", "chai-as-promised": "^7.1.1", "eslint": "^8.50.0", "glob": "^8.0.3", "mocha": "^10.0.0", "prettier": "^3.0.3", "rewiremock": "^3.13.0", "semver": "^7.5.4", "sinon": "^15.0.2", "ts-loader": "^9.3.1", "ts-mockito": "^2.6.1", "typemoq": "^2.1.0", "typescript": "^5.2.2", "vscode-test": "^1.6.1", "webpack": "^5.87.0", "webpack-cli": "^5.1.4" }, "dependencies": { "@vscode/extension-telemetry": "^0.8.5", "@vscode/python-extension": "^1.0.5", "fs-extra": "^11.2.0", "iconv-lite": "^0.6.3", "inversify": "^6.0.1", "jsonc-parser": "^3.2.0", "lodash": "^4.17.21", "reflect-metadata": "^0.1.13", "vscode-debugadapter": "^1.51.0", "vscode-debugprotocol": "^1.51.0", "vscode-languageclient": "^8.0.2" }, "__metadata": { "id": "4bd5d2c9-9d65-401a-b0b2-7498d9f17615", "publisherId": "998b010b-e2af-44a5-a6cd-0b5fd3b9b6f8", "publisherDisplayName": "Microsoft", "targetPlatform": "darwin-arm64", "updated": false, "isPreReleaseVersion": false, "hasPreReleaseVersion": false, "installedTimestamp": 1717451367947, "pinned": false, "source": "gallery" } }