microsoft / microsoft/vscode-python-debugger
Support file base name substitution in `module` configuration in `launch.json`
Aberta
@janicezyt já está trabalhando nisso.
Desde 22/9/2023.
feature-request
good first issue
needs PR
- Linguagem predominante
- TypeScript
- Estrelas
- 181
- Forks
- 126
- Merge médio
- 2d 3h
- PRs com merge (30d)
- 3
Descrição
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?
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Avaliação
Esta issue ainda não foi avaliada.