-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VSCode launch and task files for debugging
- Loading branch information
1 parent
d7d4133
commit 55f6aae
Showing
4 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,3 +110,6 @@ docs/*.aux | |
|
||
# Mac's Finder's DS_Store files | ||
**/.DS_Store | ||
|
||
# Firefox debug storage | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"preLaunchTask": "npm: dev", | ||
"postDebugTask": "Terminate All Tasks", | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Debug Chrome", | ||
"url": "http://localhost:5173/bookbinder-js/", | ||
"webRoot": "${workspaceFolder}", | ||
}, | ||
{ | ||
"preLaunchTask": "npm: dev", | ||
"postDebugTask": "Terminate All Tasks", | ||
"type": "firefox", | ||
"request": "launch", | ||
"name": "Debug Firefox", | ||
"url": "http://localhost:5173/bookbinder-js/", | ||
"webRoot": "${workspaceFolder}", | ||
"tmpDir": "${workspaceFolder}/tmp", | ||
"pathMappings": [ | ||
{ | ||
"url": "http://localhost:5173/bookbinder-js/src", | ||
"path": "${workspaceFolder}/src" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"version": "2.0.0", | ||
"inputs": [ | ||
{ | ||
"id": "terminate", | ||
"type": "command", | ||
"command": "workbench.action.tasks.terminate", | ||
"args": "terminateAll" | ||
} | ||
], | ||
"tasks": [ | ||
{ | ||
"label": "Terminate All Tasks", | ||
"command": "echo ${input:terminate}", | ||
"type": "shell", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"type": "npm", | ||
"isBackground": true, | ||
"script": "dev", | ||
"label": "npm: dev", | ||
"detail": "vite --port 5173", | ||
// All this is needed so that VSCode doesn't wait for the prelaunch | ||
// task to complete and just lets it run in the background | ||
"problemMatcher": [ | ||
{ | ||
"pattern": [ | ||
{ | ||
"regexp": ".", | ||
"file": 1, | ||
"location": 2, | ||
"message": 3 | ||
} | ||
], | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": ".", | ||
"endsPattern": ".", | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters