![](/img/trans.png)
[英]Can I detect in Powershell that I am running in VS Code's integrated terminal?
[英]Whenever I open integrated terminal in VS code 1.18, it crashes PowerShell
即使我在 setting.json 中设置了以下代码:
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
每当我打开“集成终端”时,它就会启动并立即显示:
"The terminal process terminated with exit code: 259"
代码外还有一个对话框说:
"powershell has stopped working
A problem caused the program to stop working correctly.
Windows will close the program and notify you if a solution is available."
这也发生在 32 位和 64 位
知道如何克服这个吗?
代码 259 通常表示 STILL_ACTIVE,这很奇怪。 您可以尝试使用 ProcessMonitor 来确定在您的通话期间启动了哪些进程,这或许可以为您提供线索。
打开任务管理器我在 VS Code 的所有进程上单击了结束任务
错误消失
It is all due to virus effected Program .Which is running in background Applications.
Open your Task Manager & End all the Tasks which are running in background.
OR
访问此链接以获得确切的解决方案。 https://webautomationtool.blogspot.com/2021/01/the-terminal-process.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.