Add with/without ssl targets to debugger configuration

This commit is contained in:
Jeong, YunWon
2023-08-27 02:11:01 +09:00
parent d5a62848dd
commit 287f89aa04
2 changed files with 30 additions and 8 deletions

18
.vscode/launch.json vendored
View File

@@ -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",

20
.vscode/tasks.json vendored
View File

@@ -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,
},
},
],
}