[Python] Navigate to a different file from terminal

Discussão em 'Python' iniciado por Stack, Abril 19, 2025.

  1. Stack

    Stack Membro Participativo

    I am debugging my package written in python from venv. Such that the repo source files, where the changes the the source appear are different from the source files installed in venv.

    Is it somehow possible (some extension?) to map the paths, that are included in the python exception trace (the env ones) to the files in the repo dir (which vscode has opened as folder).

    The way I see it is as follows: I create map entries of the form:

    Source: <fromDir>/*.py; Target: <toDir>/*.py


    or just like this:

    Source: <fromDir>; Target: <toDir>


    And vscode "Open file in editor" feature would call this mapping to resolve the target file path.

    Is there something like that in 2025 in vscode?

    Continue reading...

Compartilhe esta Página