Skip to content

Commit

Permalink
Local debugging capabilities for VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
mendhak committed Nov 20, 2022
1 parent 2575727 commit 706f6bc
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ env.sh
*.pickle
credentials*
*.json
!.vscode/*
*.bin
test.svg
*.xml
venv
cache_
.venv
.venv
.env
19 changes: 19 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// 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": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true,
"envFile": "${workspaceFolder}/.env",
"preLaunchTask": "Source Shell"

}
]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"python.defaultInterpreterPath": ".venv/bin/python",
"python.envFile": "${workspaceFolder}/env.sh",
"python.terminal.activateEnvironment": true
}
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Source Shell",
"type": "shell",
"command": "source env.sh; printenv > ${workspaceFolder}/.env;"
}
]
}

0 comments on commit 706f6bc

Please sign in to comment.