LoginSignup
3
2

More than 3 years have passed since last update.

デバッグ実行時にsudoを付ける方法

Posted at

事象

Visual Studio CodeでPythonをデバッグ実行したときに、[Errno 13] Permission deniedが発生した。

image.png

原因

対象Pythonコードに管理者権限が必要だったが、Visual Studio Codeのデバッグ実行時にsudoが付いていないため。(あたりまえ)

対処方法

launch.jsonに"sudo": trueを追記すればOK。

image.png

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2