.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.
"request": "launch",
"program": "${workspaceFolder}/bricks/virtualhub/build/virtualhub-micropython",
"args": [
- "./tests/pup/motors/busy.py"
+ "./tests/motors/single_motor.py"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
},
{
"name": "PBIO_VIRTUAL_PLATFORM_MODULE",
- "value": "pbio_virtual.platform.turtle"
+ "value": "pbio_virtual.platform.robot"
+ },
+ {
+ "name": "PATH",
+ "value": "${workspaceFolder}/.venv/bin:${env:PATH}",
}
],
"externalConsole": false,
