Skip to content

Commit 4262e58

Browse files
authored
chore: add vscode dev debug configs (#737)
1 parent 5d95e47 commit 4262e58

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

.devcontainer/devcontainer.json

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
"visualstudioexptteam.vscodeintellicode",
4343
"mrmlnc.vscode-duplicate",
4444
"mutantdino.resourcemonitor",
45+
"eamodio.gitlens",
46+
"codezombiech.gitignore",
47+
"oderwat.indent-rainbow"
4548
],
4649

4750
// Use 'forwardPorts' to make a list of ports inside the container available locally.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@
3737
/unix.tag
3838
/xml2rfc.egg-info
3939
/__pycache__
40+
dev-data

.vscode/launch.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python: Run - Draft to HTML",
9+
"type": "python",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/xml2rfc/run.py",
12+
"args": [
13+
"tests/input/draft-template.xml",
14+
"-p",
15+
"${workspaceFolder}/dev-data",
16+
"--html"
17+
],
18+
"cwd": "${workspaceFolder}",
19+
"env": {
20+
"PYTHONPATH": "."
21+
},
22+
"preLaunchTask": "mkdir-dev-output",
23+
"console": "integratedTerminal"
24+
},
25+
{
26+
"name": "Python: Display Help",
27+
"type": "python",
28+
"request": "launch",
29+
"program": "${workspaceFolder}/xml2rfc/run.py",
30+
"args": ["--help"],
31+
"cwd": "${workspaceFolder}",
32+
"env": {
33+
"PYTHONPATH": "."
34+
},
35+
"console": "integratedTerminal"
36+
}
37+
]
38+
}

.vscode/tasks.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "mkdir-dev-output",
8+
"type": "shell",
9+
"command": "mkdir -p ${workspaceFolder}/dev-data"
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)