Skip to content

Commit 717591a

Browse files
committed
add debugpy capability
1 parent 660f717 commit 717591a

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"name": "Python Debugger: Remote Attach",
9+
"type": "debugpy",
10+
"request": "attach",
11+
"connect": {
12+
"host": "localhost",
13+
"port": 5678
14+
},
15+
"pathMappings": [
16+
{
17+
"localRoot": "${workspaceFolder}",
18+
"remoteRoot": "/venv/lib/python3.13/site-packages/stdio_socket"
19+
}
20+
]
21+
},
722
{
823
"name": "Debug Unit Test",
924
"type": "debugpy",

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ FROM python:${PYTHON_VERSION} AS developer
55

66
# Add any system dependencies for the developer/build environment here
77
RUN apt-get update && apt-get install -y --no-install-recommends \
8+
gdb \
89
graphviz \
910
&& rm -rf /var/lib/apt/lists/*
1011

@@ -22,7 +23,13 @@ RUN touch dev-requirements.txt && pip install -c dev-requirements.txt .[demo]
2223

2324
# The runtime stage copies the built venv into a slim runtime container
2425
FROM python:${PYTHON_VERSION}-slim AS runtime
25-
# Add apt-get system dependecies for runtime here if needed
26+
27+
# Add apt-get system dependecies for runtime
28+
RUN apt-get update && apt-get install -y --no-install-recommends \
29+
gdb \
30+
&& rm -rf /var/lib/apt/lists/*
31+
32+
2633
COPY --from=build /venv/ /venv/
2734
ENV PATH=/venv/bin:$PATH
2835

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers = [
1414
description = "An example simulation IOC for testing fastCS"
1515
dependencies = [
1616
"fastcs",
17+
"debugpy",
1718
] # Add project dependencies here, e.g. ["click", "numpy"]
1819
dynamic = ["version"]
1920
license.file = "LICENSE"

0 commit comments

Comments
 (0)