尝试使用notepad++和csscript调试外部进程时出错

本文关键字:外部 调试 进程 出错 csscript notepad++ | 更新日期: 2023-09-27 17:53:56

对于我的公司,我的任务是找到一种调试外部进程和'cs脚本'的方法。

我想要实现的事情是让项目工程师(谁没有visual studio)调试他们写的脚本。我们有一个相当整洁的系统,项目工程师可以编写一个简单的脚本,为我们的主程序添加更多的功能(在特殊输入时打开灯)(它经常用于客户的自定义I/O和我们的软件之间的接口)。

所以我认为一个好的开始点是检查csscript插件的notepad++,对于构建一个简单的脚本(如果它有一个静态的void main)它是伟大的,它是可怕的。然而,我想尝试"调试外部进程"功能,我点击它的那一刻,我得到这个错误:

************** Tekst van uitzondering **************
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at CSScriptNpp.DebugExternal.<GetProcessList>d__11.MoveNext()
   at CSScriptNpp.DebugExternal.Repopulete(Boolean refetch)
   at CSScriptNpp.DebugExternal.<Reload>b__8_0()

************** Loaded assembly's **************
mscorlib
    Assembly-version: 4.0.0.0
    Win32-version: 4.6.1076.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
CSScriptNpp
    Assembly-version: 1.0.46.0
    Win32-version: 1.0.46.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Notepad++/plugins/CSScriptNpp.dll
----------------------------------------
System.Windows.Forms
    Assembly-version: 4.0.0.0
    Win32-version: 4.6.1055.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly-version: 4.0.0.0
    Win32-version: 4.6.1075.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly-version: 4.0.0.0
    Win32-version: 4.6.1068.2 built by: NETFXREL3STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
CSScriptIntellisense
    Assembly-version: 1.0.14.0
    Win32-version: 1.0.14.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Notepad++/plugins/CSScriptNpp/CSScriptIntellisense.dll
----------------------------------------

坦率地说,我不知道该怎么做,因为我所做的就是:打开notepad++ -> plugins -> csscript ->调试外部进程

有人有这方面的经验吗?或者知道更好的方法?

尝试使用notepad++和csscript调试外部进程时出错

我通过卸载notepad++并删除Program Files (x86)'Notepad++中所有插件和剩余文件/文件夹来解决问题

之后,我重新安装了NPP并再次下载了插件,现在它可以工作了