Skip to content

Commit d24013d

Browse files
authored
Merge pull request RustPython#5045 from youknowone/debugger
Add with/without ssl targets to debugger configuration
2 parents 31f0d9b + 287f89a commit d24013d

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

.vscode/launch.json

+12-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
"type": "lldb",
99
"request": "launch",
1010
"name": "Debug executable 'rustpython'",
11-
"cargo": {
12-
"args": [
13-
"build",
14-
"--package=rustpython"
15-
],
16-
},
1711
"preLaunchTask": "Build RustPython Debug",
1812
"program": "target/debug/rustpython",
1913
"args": [],
@@ -22,6 +16,18 @@
2216
},
2317
"cwd": "${workspaceFolder}"
2418
},
19+
{
20+
"type": "lldb",
21+
"request": "launch",
22+
"name": "Debug executable 'rustpython' without SSL",
23+
"preLaunchTask": "Build RustPython Debug without SSL",
24+
"program": "target/debug/rustpython",
25+
"args": [],
26+
"env": {
27+
"RUST_BACKTRACE": "1"
28+
},
29+
"cwd": "${workspaceFolder}"
30+
},
2531
{
2632
"type": "lldb",
2733
"request": "launch",

.vscode/tasks.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
11
{
22
"version": "2.0.0",
33
"tasks": [
4+
{
5+
"label": "Build RustPython Debug without SSL",
6+
"type": "shell",
7+
"command": "cargo",
8+
"args": [
9+
"build",
10+
],
11+
"problemMatcher": [
12+
"$rustc",
13+
],
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true,
17+
},
18+
},
419
{
520
"label": "Build RustPython Debug",
621
"type": "shell",
722
"command": "cargo",
823
"args": [
924
"build",
25+
"--features=ssl"
1026
],
1127
"problemMatcher": [
1228
"$rustc",
@@ -15,6 +31,6 @@
1531
"kind": "build",
1632
"isDefault": true,
1733
},
18-
}
34+
},
1935
],
2036
}

0 commit comments

Comments
 (0)