Skip to content

Commit 00467a2

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

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"ms-vscode-remote.remote-containers",
4+
"ms-vscode-remote.remote-ssh",
5+
],
6+
}

core/.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"ms-python.python",
4+
"ms-python.debugpy"
5+
]
6+
}

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
@@ -106,6 +106,8 @@ COPY configuration/motd /etc/motd
106106
COPY start-blueos-core /usr/bin/start-blueos-core
107107
COPY run-service.sh /usr/bin/run-service
108108

109+
COPY ./.vscode /home/pi/.vscode
110+
109111
# Copy binaries and necessary folders from download-binaries to this stage
110112
COPY --from=download-binaries \
111113
/usr/bin/blueos_startup_update.py \

0 commit comments

Comments
 (0)