在Jetson Nano上玩Python开发,我习惯使用vscode作为开发环境,然后发现无法使用vscode进行调试。
首先是调整launch.json里面的内容,"justMyCode": false
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false
}
]
}
但没有效果。
然后尝试搜索了一下,找到了资料【1】里面的解释,
debugpy dropped support for python 3.6. If you need to work with python 3.6 please pin the version of the extension to 2022.8.*.
大概是说最新版本不支持python3.6,然后检查了一下jetson nano开发板的python3版本,发现是3.6.9。
根据贴子的内容,我重新安装了一下vscode的python扩展,
版本是: Python extension v2021.12.1559732655。
安装完后,就可以正常用vscode在jetson nano上进行python调试了。
参考资料