···11+{
22+ // Use IntelliSense to learn about possible attributes.
33+ // Hover to view descriptions of existing attributes.
44+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55+ "version": "0.2.0",
66+ "configurations": [
77+ {
88+ "type": "lldb",
99+ "request": "launch",
1010+ "name": "Tauri Development Debug",
1111+ "cargo": {
1212+ "args": [
1313+ "build",
1414+ "--manifest-path=./src-tauri/Cargo.toml",
1515+ "--no-default-features"
1616+ ]
1717+ },
1818+ // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json`
1919+ "preLaunchTask": "ui:dev"
2020+ },
2121+ {
2222+ "type": "lldb",
2323+ "request": "launch",
2424+ "name": "Tauri Production Debug",
2525+ "cargo": {
2626+ "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"]
2727+ },
2828+ // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json`
2929+ "preLaunchTask": "ui:build"
3030+ }
3131+ ]
3232+}
+25
.vscode/tasks.json
···11+{
22+ // See https://go.microsoft.com/fwlink/?LinkId=733558
33+ // for the documentation about the tasks.json format
44+ "version": "2.0.0",
55+ "tasks": [
66+ {
77+ "label": "ui:dev",
88+ "type": "shell",
99+ // `dev` keeps running in the background
1010+ // ideally you should also configure a `problemMatcher`
1111+ // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson
1212+ "isBackground": true,
1313+ // change this to your `beforeDevCommand`:
1414+ "command": "deno",
1515+ "args": ["task", "dev"]
1616+ },
1717+ {
1818+ "label": "ui:build",
1919+ "type": "shell",
2020+ // change this to your `beforeBuildCommand`:
2121+ "command": "deno",
2222+ "args": ["task", "build"]
2323+ }
2424+ ]
2525+}