diff --git a/.vscode/launch.json b/.vscode/launch.json index 6a632e0f10..fa6f96c5fd 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,12 +8,6 @@ "type": "lldb", "request": "launch", "name": "Debug executable 'rustpython'", - "cargo": { - "args": [ - "build", - "--package=rustpython" - ], - }, "preLaunchTask": "Build RustPython Debug", "program": "target/debug/rustpython", "args": [], @@ -22,6 +16,18 @@ }, "cwd": "${workspaceFolder}" }, + { + "type": "lldb", + "request": "launch", + "name": "Debug executable 'rustpython' without SSL", + "preLaunchTask": "Build RustPython Debug without SSL", + "program": "target/debug/rustpython", + "args": [], + "env": { + "RUST_BACKTRACE": "1" + }, + "cwd": "${workspaceFolder}" + }, { "type": "lldb", "request": "launch", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 415356ac87..18a3d6010d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,7 +2,7 @@ "version": "2.0.0", "tasks": [ { - "label": "Build RustPython Debug", + "label": "Build RustPython Debug without SSL", "type": "shell", "command": "cargo", "args": [ @@ -15,6 +15,22 @@ "kind": "build", "isDefault": true, }, - } + }, + { + "label": "Build RustPython Debug", + "type": "shell", + "command": "cargo", + "args": [ + "build", + "--features=ssl" + ], + "problemMatcher": [ + "$rustc", + ], + "group": { + "kind": "build", + "isDefault": true, + }, + }, ], } \ No newline at end of file