Skip to content

Commit d4b6a29

Browse files
committed
chore: 🔨 Add configuration to debug the binary produced by pxt
1 parent 0b03f84 commit d4b6a29

8 files changed

Lines changed: 298 additions & 154 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
11
FROM letssteam/makecode-toolchain:latest
2+
RUN apt-get update && \
3+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
4+
cu \
5+
curl \
6+
make \
7+
software-properties-common \
8+
tar \
9+
udev \
10+
usbutils && \
11+
apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
12+
13+
RUN adduser vscode dialout && \
14+
adduser vscode plugdev
15+
16+
USER vscode
17+
RUN pyocd pack install STM32WB55RGVx && \
18+
pyocd pack install STM32L475VGTx

.devcontainer/devcontainer.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,19 @@
7171
"[cpp]": {
7272
"editor.defaultFormatter": "xaver.clang-format"
7373
},
74+
"[json]": {
75+
"editor.defaultFormatter": "esbenp.prettier-vscode"
76+
},
77+
"[jsonc]": {
78+
"editor.defaultFormatter": "esbenp.prettier-vscode"
79+
},
7480
"editor.rulers": [130],
7581
"javascript.validate.enable": false,
76-
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
82+
"javascript.format.semicolons": "insert",
7783
"typescript.format.semicolons": "insert",
84+
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
7885
"typescript.tsdk": "node_modules/typescript/lib",
86+
"eslint.format.enable": true,
7987
"eslint.validate": ["typescript", "typescriptreact"],
8088
"C_Cpp.default.compilerPath": "/arm_toolchain/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gcc",
8189
"C_Cpp.default.cStandard": "c23",
@@ -91,6 +99,7 @@
9199
"amiralizadeh9480.cpp-helper",
92100
"augustocdias.tasks-shell-input",
93101
"dan-c-underwood.arm",
102+
"dbaeumer.vscode-eslint",
94103
"esbenp.prettier-vscode",
95104
"github.vscode-pull-request-github",
96105
"keroc.hex-fmt",
@@ -109,7 +118,9 @@
109118
// Use 'forwardPorts' to make a list of ports inside the container available locally.
110119
"forwardPorts": [3232, 3233],
111120
// Use 'postCreateCommand' to run commands after the container is created.
112-
"postCreateCommand": "make setup build",
121+
"postAttachCommand": "make setup build",
122+
"postCreateCommand": "sudo /lib/systemd/systemd-udevd --daemon",
123+
113124
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
114125
"remoteUser": "vscode"
115126
}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ gh-pages
1313
_locales
1414
package-lock.json
1515
.vscode/ipch
16-
*.code-workspace
1716
*.DS_STORE
1817
.pxt/
1918
*.user

.vscode/extensions.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 92 deletions
This file was deleted.

.vscode/tasks.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)