I am writing a C++ application using libusb in VS Code with TorizonCore Early Access Extension, starting from the C/C++ Makefile template (without Qt).
Libusb is able to access the hardware if I manually run the application the container as root, or with --privileged within the container, via SSH, outside of VSCode. But I am not able to set --privileged or cgroup rules in VS Code debug mode. I think some group rules or other permission are needed by libusb.
How can I add --privileged or other options to the execution of the docker for step-by-step debugging in VS Code TorizonCore extension?
You can add any arbitrary docker run parameter via the extraparms setting in the configuration window. However the syntax for this isn’t well documented yet but we’re working on that.