Skip to content

Commit 31c82d8

Browse files
committed
vscode: add launch and task for python UI demo
1 parent 3e4b4e5 commit 31c82d8

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

.vscode/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tags

.vscode/launch.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@
2525
"ignoreFailures": true
2626
}
2727
]
28+
},
29+
{
30+
"name": "Python UI Demo",
31+
"type": "python",
32+
"request": "launch",
33+
"stopOnEntry": false,
34+
"pythonPath": "python3",
35+
"preLaunchTask": "ev3devkit-0.5-typelib",
36+
"program": "${workspaceRoot}/demo/python/ui_demo.py",
37+
"cwd": "${workspaceRoot}",
38+
"env": {
39+
"LD_LIBRARY_PATH": "${workspaceRoot}/build",
40+
"GI_TYPELIB_PATH": "${workspaceRoot}/build"
41+
},
42+
"debugOptions": [
43+
"WaitOnAbnormalExit",
44+
"WaitOnNormalExit",
45+
"RedirectOutput"
46+
]
2847
}
2948
]
3049
}

.vscode/tasks.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
"problemMatcher": [
2828
"$valac"
2929
]
30+
},
31+
{
32+
"taskName": "ev3devkit-0.5-typelib",
33+
"problemMatcher": [
34+
"$valac"
35+
]
3036
}
3137
]
3238
}

0 commit comments

Comments
 (0)