microsoft / microsoft/vscode-python-debugger
Support file base name substitution in `module` configuration in `launch.json`
未关闭
@janicezyt 已经在做这个了。
开始于 2023年9月22日。
feature-request
good first issue
needs PR
- 主要语言
- TypeScript
- 星标
- 180
- 派生
- 126
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 3
描述
Environment data
- VS Code version: 1.33.0
- Extension version: 2019.3.6558
- Python version: Python 3.6.7 (miniconda)
Feature Suggestion
It would be great to be able to debug arbitrary files as modules without having to hardcode their path in launch.json. The best I could find was the following which at least allows to debug any file in a given directory as module.
{
"configurations": [
{
"name": "Python: Module",
"type": "python",
"request": "launch",
"module": "src.nn.models.${fileBasenameNoExtension}"
}
]
}
Not sure if this can be done by the Python extension or would have to be implemented by VS Code itself, but basically I'm suggesting something similar to ${fileBasenameNoExtension} that returns the full dotted "path" to a file from a project's root?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。