0

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

我想要实现的目标是让项目工程师(没有 Visual Studio)调试他们编写的脚本。我们有一个非常简洁的系统,项目工程师可以编写一个简单的脚本来为我们的主程序添加更多功能(在特殊输入上打开灯)(它被大量用于客户的自定义 I/O 和我们的软件之间的接口.)

所以我认为一个很好的起点是检查记事本++的csscript插件,对于构建一个简单的脚本(如果它有一个静态的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
----------------------------------------

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

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

4

1 回答 1

0

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

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

于 2016-07-04T08:32:10.440 回答