I created a feature request to run the debugger an existing terminal, which would make this easy: https://github.com/microsoft/vscode/issues/241259
And another one to allow specifying shell commands to run before the debugger in debugging configurations: https://github.com/microsoft/vscode-python-debugger/issues/621
You can upvote these on GitHub if you would like this added.