【问题标题】:error when trying to debug an external process using notepad++ and csscript尝试使用 notepad++ 和 csscript 调试外部进程时出错
【发布时间】:2016-11-03 16:23:34
【问题描述】:

对于我的公司,我的任务是寻找一种方法来调试外部进程和“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
----------------------------------------

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

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

【问题讨论】:

  • 你保存文件了吗?

标签: c# debugging notepad++ remote-debugging cs-script


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-06-15
    • 2014-03-30
    • 1970-01-01
    • 1970-01-01
    • 2021-05-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多