我在Linux Mint 18.2上有一个新的VSCode干净安装 . 我已经安装了Python 0.8.0,Python Extension Pack 1.0.1,用于VSCode 0.2.3和MagicPython 1.0.12的Python
我可以在集成控制台中调试代码,但不能在外部控制台中调试 . 由于我正在编写必须以超级用户身份运行的代码,这意味着我无法调试代码(集成终端不会运行sudo代码) .
当我尝试调试时,调试控制台抛出'错误:产生ENODIR' . launch.json部分如下:
"name": "Python: Terminal (external)",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "/usr/bin/python3.5m",
"program": "${file}",
"cwd": "/home/jsb/development/diskHealth/health.py",
"console": "externalTerminal",
"env": {},
"envFile": "${workspaceRoot}/.env",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"Sudo"
]
感谢您的任何见解 .