From 94990cfc225c410fa82bf0446ee27df19e3bd44f Mon Sep 17 00:00:00 2001 From: Holger Stitz Date: Thu, 22 Aug 2019 11:42:59 +0200 Subject: [PATCH 1/2] Create .vscode/launch.json Adds the Python debugger for Visual Studio Code. Requires a phovea_server version with merged PR https://github.com/phovea/phovea_server/pull/76. --- .../templates/plain/.vscode/launch.json | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 generators/workspace/templates/plain/.vscode/launch.json diff --git a/generators/workspace/templates/plain/.vscode/launch.json b/generators/workspace/templates/plain/.vscode/launch.json new file mode 100644 index 00000000..ef1efed4 --- /dev/null +++ b/generators/workspace/templates/plain/.vscode/launch.json @@ -0,0 +1,22 @@ + { + // 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": [ + { + // remember to activate the debugger in `/config.json` + "name": "Python: phovea_server", + "type": "python", + "request": "attach", + "port": 5678, + "host": "localhost", + "pathMappings": [ + { + "localRoot": "${workspaceFolder}", + "remoteRoot": "/phovea" + } + ] + } + ] + } From 71cdf5536ed0d01040d36808fe9476545741beb1 Mon Sep 17 00:00:00 2001 From: Holger Stitz Date: Thu, 22 Aug 2019 11:46:11 +0200 Subject: [PATCH 2/2] Add `ptvsd_debugger` flag to workspace config.json --- generators/workspace/templates/config.tmpl.json | 1 + 1 file changed, 1 insertion(+) diff --git a/generators/workspace/templates/config.tmpl.json b/generators/workspace/templates/config.tmpl.json index 1c344ca2..61099b40 100644 --- a/generators/workspace/templates/config.tmpl.json +++ b/generators/workspace/templates/config.tmpl.json @@ -1,5 +1,6 @@ { "phovea_server": { + "ptvsd_debugger": false, "disable": { "plugins": [] }