Skip to content

Commit 465d95f

Browse files
kai-morichlaurensvalk
authored andcommitted
tutorials/dev/tools/vscode: Run with F5.
run on powered up devices from vs code with F5 key simplify run configuration
1 parent 2ccf76c commit 465d95f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tutorials/dev/tools/vscode/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ If you have more than one active hub, you can specify a specific hub by name:
137137

138138
pybricksdev run ble --name "my hub" my_program.py
139139

140+
To get your program started with _F5_ or _CTRL+F5_, create a run configuration
141+
of type `Python` and subtype `Module` with module name `pybricksdev` and add
142+
following line to `.vscode/launch.json`:
143+
144+
"args": ["run", "ble", "${file}"],
145+
140146

141147
[pybricksdev]: https://pypi.org/project/pybricksdev
142148

0 commit comments

Comments
 (0)