VSCode 1.90版本 升级需谨慎~(Python)

作者 : admin 本文共909个字,预计阅读时间需要3分钟 发布时间: 2024-06-8 共2人阅读

    由于再次出现justMyCode的问题,请使用Python的小伙伴要谨慎将Visual Studio Code升级到1.90版本(两天前官方刚发布的)

 若已经升级到1.90的小伙伴,可以从这里下载1.89版本进行“补救“:

    1.89.1版本下载链接: http://code.visualstudio.com/updates/v1_89

    曾在2022年的 1.68.1版本中出现过类似的问题,时隔两年后出现 justMyCode : false失效的问题 :(

    目前已确定是VSCode Python扩展包的问题,期待尽快修复解决:

    issue 如下:

http://github.com/microsoft/vscodepython-debugger/issues/356

感兴趣可关注 

简单描述 justMyCode的作用:从单词字面意思即可理解

  • 值为true:单步调试代码时,它只会在你自己实现的源码跳转

  • 值为False:单步调试代码时,可以进入到Python函数库的代码里

官方的解释如下

  • 1

  • 2

  • 3

# http://code.visualstudio.com/docs/python/debugging#_justmycode)

When omitted or set to `true` (the default), restricts debugging to user-written code only. Set to `false` to also enable debugging of standard library functions.

最后,附上launch.json

{
// 欲了解更多信息,请访问: http://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python 调试程序: 当前文件",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false
        }
    ]
}
本站无任何商业行为
个人在线分享 » VSCode 1.90版本 升级需谨慎~(Python)
E-->