Skip to content

Commit cf3cdf1

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

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

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+
}

core/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ COPY ./services /home/pi/services
5050

5151
COPY ./tools /home/pi/tools
5252

53+
COPY ./.vscode /home/pi/.vscode
54+
5355
# Virtual environment creation and packages installation
5456
WORKDIR /home/pi
5557
RUN uv venv && uv sync --frozen --no-default-groups

0 commit comments

Comments
 (0)