在 Powershell 上运行的进程随机冻结 [英] A process running on Powershell freezes randomly

查看:48
本文介绍了在 Powershell 上运行的进程随机冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Powershell 运行 Node.js 服务器.我的服务器随机停止工作,原因我不知道.

I'm running Node.js server with Powershell. My server stops working randomly, for a reason that I do not know.

我在谷歌上搜索了 Node.js 随机停止工作ExpressJS 随机停止工作 等数百次并将调试代码内容注入到我的 Node.js 代码中以修复它.

I've googled Node.js stops working randomly, ExpressJS stops working randomly, etc. hundreds of times and injected debugging code stuff to my Node.js code in order to fix it.

但我无法阻止,我不能!我的服务器出了什么问题?

But I cannot prevent it, I cannot! What's wrong with my server?

推荐答案

其实不是因为Node.js,而是因为Powershell的QuickEdit功能.

In fact, it is not because of Node.js, but because of Powershell's QuickEdit feature.

使用 Powershell 的 QuickEdit,您只需拖动即可轻松标记一些文本....当您标记一些文本时,您在 shell 上工作的进程(脚本)会冻结.

With Powershell's QuickEdit, you can easily mark some text by just dragging it. ... and your process(script) working on the shell freezes when you're marking some text.

您可以通过以下方式禁用它:

You can disable it by:

  1. 右键单击 Powershell 窗口的标题栏,然后单击 Properties.
  2. Options 选项卡上取消选中 QuickEdit Mode.
  1. Right-click the title bar of the Powershell window and click Properties.
  2. Uncheck QuickEdit Mode on the Options tab.

我这几周所做的完全是浪费时间!

这篇关于在 Powershell 上运行的进程随机冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆