在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调试了。
参考资料
【1】Debugging python code on Nvidia jetson (Python extension v2022.10.1) does not work. But it works well on v2021.12.1559732655. · Issue #19517 · microsoft/vscode-python · GitHub
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)