The answer is https://code.visualstudio.com/docs/python/debugging#_purpose and the `debug-in-terminal` setting, but it isn't very obvious from the wording that's the solution.
The answer is https://code.visualstudio.com/docs/python/debugging#_purpose and the
debug-in-terminalsetting, but it isn't very obvious from the wording that's the solution.