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

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

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

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

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

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

    issue 如下:

https://github.com/microsoft/vscode-python-debugger/issues/356

感兴趣可关注 

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

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

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

官方的解释如下

  • 1

  • 2

  • 3

# https://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

{
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python 调试程序: 当前文件",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false
        }
    ]
}

相关推荐

  1. VSCode 1.90版本 升级谨慎~(Python

    2024-06-09 09:46:03       27 阅读
  2. 升级anaconda中python到3.10版本

    2024-06-09 09:46:03       47 阅读
  3. anaconda3 升级python版本

    2024-06-09 09:46:03       59 阅读
  4. Django、Python版本升级问题大汇总

    2024-06-09 09:46:03       59 阅读
  5. 怎么升级python 的 chromedriver 版本

    2024-06-09 09:46:03       45 阅读
  6. linux- Python 升级到指定版本

    2024-06-09 09:46:03       34 阅读
  7. 在 CentOS 系统中升级 Python 版本

    2024-06-09 09:46:03       28 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-09 09:46:03       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-09 09:46:03       106 阅读
  3. 在Django里面运行非项目文件

    2024-06-09 09:46:03       87 阅读
  4. Python语言-面向对象

    2024-06-09 09:46:03       96 阅读

热门阅读

  1. React Native 快速Demo(2)

    2024-06-09 09:46:03       23 阅读
  2. PostgreSQL教程

    2024-06-09 09:46:03       27 阅读
  3. Docker面试整理-Docker Swarm是什么?

    2024-06-09 09:46:03       31 阅读
  4. Python——用新字符替换字符串中的旧字符

    2024-06-09 09:46:03       37 阅读
  5. 基本通信设备

    2024-06-09 09:46:03       28 阅读
  6. LIO-SAM报错记录

    2024-06-09 09:46:03       33 阅读
  7. GlusterFS分布式文件系统

    2024-06-09 09:46:03       35 阅读
  8. 821. 字符的最短距离

    2024-06-09 09:46:03       31 阅读
  9. 【力扣】 两个字符串的最小ASCII删除和

    2024-06-09 09:46:03       36 阅读
  10. git checkout file 撤销对该文件的所有修改

    2024-06-09 09:46:03       33 阅读
  11. echarts-for-react

    2024-06-09 09:46:03       37 阅读
  12. C# WPF入门学习主线篇(十一)—— 布局管理

    2024-06-09 09:46:03       30 阅读
  13. scss是什么安装使⽤的步骤

    2024-06-09 09:46:03       31 阅读