[英]Python file not debugging in vscode docker container
Opened VSCode.打开 VSCode。 Started container by docker extension.
通过 docker 分机启动容器。 Attached visual studio code with container.
附上带有容器的 visual studio 代码。 Start debugging but nothing shows on terminal.
开始调试但终端上没有任何显示。 Added break points, debugging not started.
添加断点,调试未启动。 Debugging palette appears for a while.
调试面板会出现一段时间。 Start debugging but nothing shows on terminal.
开始调试但终端上没有任何显示。 Added break points, debugging not started.
添加断点,调试未启动。 Debugging palette appears for a while.
调试面板会出现一段时间。 Tried reinstall, restart laptop, remote python extension in prerelease version.
尝试重新安装,重新启动笔记本电脑,预发布版本中的远程 python 扩展。
**VScode**
Version: 1.69.1 (user setup)
Commit: b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a
Date: 2022-07-12T08:21:24.514Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2 V8: 10.0.139.17-electron.0
OS: Windows_NT x64 10.0.19044
Python Extension in docker container: v2022.10.1 Python docker 容器中的扩展:v2022.10.1
Problem is caused by python extension(microsoft) in container.问题是由容器中的 python 扩展(微软)引起的。 Downgraded python extension from v2022.10.1 to v2022.8.0 in container extensions.
在容器扩展中将 python 扩展从 v2022.10.1 降级到 v2022.8.0。 Problem solved.
问题解决了。
Had the same problem有同样的问题
I solved it by opening my folder in VS Code.我通过在 VS Code 中打开我的文件夹解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.