add a vscode launch config

This commit is contained in:
ophir
2023-10-21 22:10:22 +02:00
parent f539388db1
commit f9c88c3311
+83
View File
@@ -0,0 +1,83 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'sqlpage'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=sqlpage"
],
"filter": {
"name": "sqlpage",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'sqlpage'",
"cargo": {
"args": [
"build",
"--bin=sqlpage",
"--package=sqlpage"
],
"filter": {
"name": "sqlpage",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'sqlpage'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=sqlpage",
"--package=sqlpage"
],
"filter": {
"name": "sqlpage",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug integration test 'index'",
"cargo": {
"args": [
"test",
"--no-run",
"--test=index",
"--package=sqlpage"
],
"filter": {
"name": "index",
"kind": "test"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}