Updated VS Code debug configurations

This commit is contained in:
squidfunk 2023-10-05 14:15:25 +02:00
parent 6990976793
commit dcf5a80ef7
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
2 changed files with 39 additions and 0 deletions

33
.vscode/launch.json vendored
View File

@ -12,6 +12,39 @@
"url": "http://localhost:8000/mkdocs-material/", "url": "http://localhost:8000/mkdocs-material/",
"webRoot": "${workspaceFolder}", "webRoot": "${workspaceFolder}",
"smartStep": true "smartStep": true
},
{
"name": "MkDocs",
"type": "python",
"request": "launch",
"preLaunchTask": "Start and watch for changes",
"program": "venv/bin/mkdocs",
"args": ["build"],
"env": {
"PYTHONPATH": "."
}
},
{
"name": "MkDocs server",
"type": "python",
"request": "launch",
"preLaunchTask": "Start and watch for changes",
"program": "venv/bin/mkdocs",
"args": ["serve", "--watch-theme"],
"env": {
"PYTHONPATH": "."
}
},
{
"name": "MkDocs server (dirty)",
"type": "python",
"request": "launch",
"preLaunchTask": "Start and watch for changes",
"program": "venv/bin/mkdocs",
"args": ["serve", "--watch-theme", "--dirtyreload"],
"env": {
"PYTHONPATH": "."
}
} }
] ]
} }

6
.vscode/tasks.json vendored
View File

@ -21,6 +21,12 @@
"group": "build", "group": "build",
"presentation": { "presentation": {
"reveal": "silent" "reveal": "silent"
},
"problemMatcher": {
"background": {
"beginsPattern": "material\/templates\/redirect",
"endsPattern": "."
}
} }
} }
] ]