From d14c592d55be52f0d9449a4130dfe6b4d5635e77 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 14 Aug 2024 08:33:30 -0700 Subject: [PATCH] vscode-python: proper remote debug fix --- plugins/vscode-python/.vscode/launch.json | 8 ++------ plugins/vscode-python/.vscode/settings.json | 12 ------------ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/plugins/vscode-python/.vscode/launch.json b/plugins/vscode-python/.vscode/launch.json index 72e05815d..981f6986c 100644 --- a/plugins/vscode-python/.vscode/launch.json +++ b/plugins/vscode-python/.vscode/launch.json @@ -6,7 +6,7 @@ "configurations": [ { "name": "Scrypted Debugger", - "type": "python", + "type": "debugpy", "request": "attach", "connect": { "host": "${config:scrypted.debugHost}", @@ -15,13 +15,9 @@ "justMyCode": false, "preLaunchTask": "scrypted: deploy+debug", "pathMappings": [ - { - "localRoot": "/Volumes/Dev/scrypted/server/python/", - "remoteRoot": "/Volumes/Dev/scrypted/server/python/", - }, { "localRoot": "${workspaceFolder}/src", - "remoteRoot": "${config:scrypted.pythonRemoteRoot}" + "remoteRoot": "." }, ] } diff --git a/plugins/vscode-python/.vscode/settings.json b/plugins/vscode-python/.vscode/settings.json index d71b6ca7d..8c2bbf457 100644 --- a/plugins/vscode-python/.vscode/settings.json +++ b/plugins/vscode-python/.vscode/settings.json @@ -1,18 +1,6 @@ { - // docker installation - // "scrypted.debugHost": "koushik-thin", - // "scrypted.serverRoot": "/server", - - // pi local installation - // "scrypted.debugHost": "192.168.2.119", - // "scrypted.serverRoot": "/home/pi/.scrypted", - - // local checkout "scrypted.debugHost": "127.0.0.1", - "scrypted.serverRoot": "/Users/koush/.scrypted", - - "scrypted.pythonRemoteRoot": "${config:scrypted.serverRoot}/volume/plugin.zip", "python.analysis.extraPaths": [ "./node_modules/@scrypted/sdk/types/scrypted_python" ]