调试时来自外部文件的输入不适用于 Microsoft Python VS 代码扩展

Input from external file doesn't work with Microsoft Python VS Code extension while debugging

调试时,我正在尝试按照 VS Code 文档 here 中的建议从外部文件读取输入(通过添加“args”:[“<”,“input.txt”] launch.json)。它不起作用,因为重定向(“<”)被 Microsoft 的 Python 扩展自动转义(前缀为“\”)(请参阅下面的控制台输出)。

cd /workspaces/pyt ; /usr/bin/env /usr/local/bin/python /home/vscode/.vscode-server/extensions/ms-python.python-2022.7.11332232/pythonFiles/lib/python/debugpy/launcher 41587 -- /workspaces/pyt/test.py \< input.txt 

这种从外部文件读取输入的方式确实适用于其他 VS 代码扩展,例如 C/C++。有什么方法可以让它与 Python 扩展一起工作(在调试时)?

This 已在 Vscode 1.67.2

中解决

请尽快更新