'Visual studio debugging with sudo rights

I use keyboard python module in my python code, so I need to run code with sudo through terminal. But I also need to debug through visual studio, but then I can't use keyboard module.



Solution 1:[1]

Just needed to add sudo to configuration in launch.json...

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Opicak