Skip to content

Commit fd35ec7

Browse files
committed
.vscode/launch: Adapt virtualhub config for motors.
At the moment, the virtualhub is mainly used to debug motor code. So it helps to make this the default launch configuration. We also add the virtual environment to the path to ensure the correct libraries can be imported.
1 parent 2206d82 commit fd35ec7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.vscode/launch.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"request": "launch",
9898
"program": "${workspaceFolder}/bricks/virtualhub/build/virtualhub-micropython",
9999
"args": [
100-
"./tests/pup/motors/busy.py"
100+
"./tests/motors/single_motor.py"
101101
],
102102
"stopAtEntry": false,
103103
"cwd": "${workspaceFolder}",
@@ -108,7 +108,11 @@
108108
},
109109
{
110110
"name": "PBIO_VIRTUAL_PLATFORM_MODULE",
111-
"value": "pbio_virtual.platform.turtle"
111+
"value": "pbio_virtual.platform.robot"
112+
},
113+
{
114+
"name": "PATH",
115+
"value": "${workspaceFolder}/.venv/bin:${env:PATH}",
112116
}
113117
],
114118
"externalConsole": false,

0 commit comments

Comments
 (0)