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 還沒有評估資料。