您当前的位置: 首页 >  Python
  • 6浏览

    0关注

    483博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

VSCODE在Jetson Nano上打不上断点,无法调试python源码

高精度计算机视觉 发布时间:2022-08-28 13:27:19 ,浏览量:6

在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

关注
打赏
1661664439
查看更多评论
立即登录/注册

微信扫码登录

0.0477s