-
-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/vs code launch tasks #1802
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
// 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": [ | ||
{ | ||
"name": "portmaster-core", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/cmds/portmaster-core", | ||
"args": ["--data=D:\\delme\\pmdata", "--disable-interception=true", "-log=trace"], // TODO: update the path to the data folder if needed | ||
}, | ||
{ | ||
"name": "portmaster-start", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/cmds/portmaster-start", | ||
"args": ["app", "--data=D:\\delme\\pmdata", "-log=trace"], // TODO: update the path to the data folder if needed | ||
}, | ||
{ | ||
"name": "notifier", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/cmds/notifier", | ||
"args": ["--data=D:\\delme\\pmdata", "-log=trace"], // TODO: update the path to the data folder if needed | ||
}, | ||
{ | ||
"name": "observation-hub", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/cmds/observation-hub", | ||
"args": ["--data=D:\\delme\\pmdata", "-log=trace"], // TODO: update the path to the data folder if needed | ||
} , | ||
{ | ||
"name": "hub", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/cmds/hub", | ||
"args": ["--data=D:\\delme\\pmdata_hub", "-log=trace"], // TODO: update the path to the data folder if needed | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
// 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": [ | ||
{ | ||
"name": "Run UI in Chrome (npm run start)", | ||
"type": "chrome", | ||
"request": "launch", | ||
"preLaunchTask": "debugproj", | ||
"postDebugTask": "killnode", | ||
"url": "http://localhost:4200/", | ||
"webRoot": "${workspaceFolder}", | ||
"sourceMapPathOverrides": { | ||
"webpack:/*": "${webRoot}/*", | ||
"/./*": "${webRoot}/*", | ||
"/src/*": "${webRoot}/*", | ||
"/*": "*", | ||
"/./~/*": "${webRoot}/node_modules/*" | ||
} | ||
}, | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "debugproj", | ||
"type": "npm", | ||
"script": "start", | ||
"isBackground": true, | ||
"presentation": { | ||
"focus": true, | ||
"panel": "dedicated" | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": { | ||
"owner": "typescript", | ||
"source": "ts", | ||
"applyTo": "closedDocuments", | ||
"fileLocation": [ | ||
"relative", | ||
"${cwd}" | ||
], | ||
"pattern": "$tsc", | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": { | ||
"regexp": "(.*?)" | ||
}, | ||
"endsPattern": { | ||
"regexp": "Compiled |Failed to compile." | ||
} | ||
} | ||
}, | ||
"options": { | ||
"cwd": "${workspaceFolder}/src" | ||
}, | ||
}, | ||
{ | ||
"label": "killnode", | ||
"type": "process", | ||
"windows": { | ||
"command": "taskkill /F /IM node.exe" | ||
}, | ||
"osx":{ | ||
"command": "killall node", | ||
}, | ||
"linux":{ | ||
"command": "killall node", | ||
}, | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": false, | ||
"panel": "shared" | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"isBackground": false, | ||
"dependsOrder": "sequence", | ||
"dependsOn": "debugproj", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@echo off | ||
|
||
setlocal | ||
|
||
:: Store the current directory | ||
set "current_dir=%cd%" | ||
|
||
:: Get base directory for mounting | ||
cd ..\.. | ||
set "mnt=%cd%" | ||
:: Return to the original directory | ||
cd /d "%current_dir%" | ||
|
||
REM Run Docker container and start dev server | ||
docker run ^ | ||
-ti ^ | ||
--rm ^ | ||
-v %mnt%:/portmaster ^ | ||
-w /portmaster/desktop/angular ^ | ||
-p 8081:8080 ^ | ||
node:latest ^ | ||
npm start -- --host 0.0.0.0 --port 8080 | ||
|
||
endlocal |
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" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+11
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add missing required properties for LLDB debugging. The LLDB debug configuration is missing several required properties:
Apply this diff to add the missing properties: {
"type": "lldb",
"request": "launch",
"name": "Debug Dev",
+ "program": "${workspaceRoot}/src-tauri/target/debug/app",
+ "args": [],
+ "cwd": "${workspaceRoot}",
"cargo": {
"args": [
"build",
"--manifest-path=./src-tauri/Cargo.toml",
"--no-default-features"
]
},
} 📝 Committable suggestion
Suggested change
🧰 Tools🪛 Biome (1.9.4)[error] 22-22: Expected a property but instead found '}'. Expected a property here. (parse) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"type": "lldb", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"request": "launch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"name": "Debug Prod", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"cargo": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+23
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add missing required properties for LLDB debugging (release mode). The LLDB debug configuration for release mode is missing several required properties:
Apply this diff to add the missing properties: {
"type": "lldb",
"request": "launch",
"name": "Debug Prod",
+ "program": "${workspaceRoot}/src-tauri/target/release/app",
+ "args": [],
+ "cwd": "${workspaceRoot}",
"cargo": {
"args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"]
},
} 📝 Committable suggestion
Suggested change
🧰 Tools🪛 Biome (1.9.4)[error] 30-30: Expected a property but instead found '}'. Expected a property here. (parse) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"name": "Debug Dev (VS Win Debugger)", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"type": "cppvsdbg", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"request": "launch", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"program": "${workspaceRoot}/src-tauri/target/debug/app.exe", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"cwd": "${workspaceRoot}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"preLaunchTask": "build:debug" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} |
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"] | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix JSON syntax errors: Remove trailing commas.
The JSON file contains trailing commas that need to be removed to ensure valid JSON syntax.
Apply this diff to fix the JSON syntax:
Also applies to: 48-48, 51-51
🧰 Tools
🪛 Biome (1.9.4)
[error] 39-39: Expected a property but instead found '}'.
Expected a property here.
(parse)