Skip to content

Commit 17a2c86

Browse files
Add debug settings for Python with vscode
1 parent 3f5610d commit 17a2c86

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

core/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ COPY --from=download-binaries \
123123
COPY --from=frontend-builder /home/pi/frontend/dist /home/pi/frontend
124124
COPY --from=install-services-and-libs /home/pi/.venv /usr/blueos/venv
125125

126+
COPY .vscode /home/pi/.vscode
127+
126128
RUN <<-EOF
127129
set -e
128130

core/vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"configurations": [
3+
{
4+
// Use this to debug python code in the remote container
5+
// Requires the "Remote development" extensions to be installed
6+
// as well as the Python debugger extension in the container
7+
"name": "Python Debugger in Remote Container: Current File",
8+
"type": "debugpy",
9+
"request": "launch",
10+
"program": "${file}",
11+
"console": "integratedTerminal",
12+
"python": "/usr/blueos/venv/bin/python3"
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)