microsoft / microsoft/vscode-python-debugger
Support file base name substitution in `module` configuration in `launch.json`
Abierto
@janicezyt ya está trabajando en esto.
Desde el 22/9/2023.
feature-request
good first issue
needs PR
- Lenguaje dominante
- TypeScript
- Estrellas
- 180
- Forks
- 126
- Merge medio
- 2 d 3 h
- PR fusionados (30 d)
- 3
Descripción
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?
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.