debugpy/.vscode/launch.json
Pavel Minaev 346b97bf69 Fix #1938: Debuggee output is UTF-8 regardless of locale
Fix #1954: "redirectOutput" property is not respected

If "redirectOutput" is specified, always capture output as UTF-8, and encode it according to locale and Python settings.

Change the default for "redirectOutput" to be false when "console" is not set to "internalConsole", to minimize differences in behavior when running under debugger for most common scenarios.

Refactor ptvsd.launcher package to minimize circular dependencies between modules.
2019-11-27 20:35:58 -08:00

40 lines
No EOL
1.3 KiB
JSON

{
// 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": "ptvsd.adapter --port",
"type": "python",
"request": "launch",
"console": "integratedTerminal",
"consoleTitle": "ptvsd.adapter",
"program": "${workspaceFolder}/src/ptvsd/adapter",
"args": ["--port", "8765", "--log-stderr"],
"noDebug": true,
},
// For these, ptvsd.adapter must be started first via the above configuration.
{
//"debugServer": 8765,
"name": "Launch Python file [debugServer]",
"type": "python",
"request": "launch",
//"console": "internalConsole",
"console": "integratedTerminal",
//"console": "externalTerminal",
"consoleTitle": "ptvsd.server",
"program": "${file}",
"logToFile": true,
},
{
"name": "Attach [debugServer]",
"type": "python",
"request": "attach",
"host": "localhost",
"port": 5678,
"logToFile": true,
},
]
}