microsoft / microsoft/vscode-python-debugger

[BUG] Debugging with purpose ignored in user/workspace settings.

未关闭
#525 5 条评论 6 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug needs PR
主要语言
TypeScript
星标
181
派生
126
平均合并
2 天 3 小时
30 天内合并 PR
3

描述

Environment data

  • VS Code version: v1.60.0
  • Extension version (available under the Extensions sidebar): v2021.9.1246542782
  • OS and version: win10 20h2 64bit
  • Python version (& distribution if applicable, e.g. Anaconda): py3.7.7 32bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): `N/A
  • Relevant/affected Python packages and their versions: pylance v2021.9.4, jupyter v2021.8.2041215044
  • Value of the python.languageServer setting: Default

Steps to reproduce:

  1. add this configuration in workspace/user settings:
    "launch": {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Python: Current File - Editor button",
                "type": "python",
                "request": "launch",
                "program": "${file}",
                "console": "integratedTerminal",
                "justMyCode": false,
                "purpose": ["debug-in-terminal"]
            }
        ]
    }
  1. try debug from editor button, it doesn't work. but in folder launch.json it works.

Logs

EMPTY

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先使用工作区/用户设置配置重现通过编辑器按钮启动的过程,然后将其与能够正常工作的文件夹 launch.json 配置进行比较。跟踪调试器扩展在每条路径中如何处理 purpose 字段;完成的标准是工作区和用户设置中的 purpose ["debug-in-terminal"] 得到遵循。

由索引模型根据 Issue 内容生成。

评估

技术栈
python, typescript, vscode
领域
devtools
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。