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

在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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值