Skip to content

Commit

Permalink
[development] added VSCode launch tasks: Tauri project
Browse files Browse the repository at this point in the history
  • Loading branch information
stenya committed Jan 24, 2025
1 parent a40409e commit 24c0f96
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 3 deletions.
3 changes: 0 additions & 3 deletions desktop/angular/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
"options": {
"cwd": "${workspaceFolder}/src"
},
"runOptions": {
"runOn": "folderOpen"
}
},
{
"label": "killnode",
Expand Down
40 changes: 40 additions & 0 deletions desktop/tauri/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
// 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

// How to debug Tauri project:
// https://v2.tauri.app/develop/debug/
//
"version": "0.2.0",
"configurations": [
{
"type": "lldb", // `vscode-lldb` extension has to be installed (https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)
"request": "launch",
"name": "Debug Dev",
"cargo": {
"args": [
"build",
"--manifest-path=./src-tauri/Cargo.toml",
"--no-default-features"
]
},
},
{
"type": "lldb",
"request": "launch",
"name": "Debug Prod",
"cargo": {
"args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"]
},
},
{
"name": "Debug Dev (VS Win Debugger)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceRoot}/src-tauri/target/debug/app.exe",
"cwd": "${workspaceRoot}",
"preLaunchTask": "build:debug"
}
]
}
14 changes: 14 additions & 0 deletions desktop/tauri/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build:debug",
"type": "cargo",
"command": "build",
"args": ["--manifest-path=./src-tauri/Cargo.toml",
"--no-default-features"]
}
]
}

0 comments on commit 24c0f96

Please sign in to comment.