【问题标题】:What is expected in the "Output" field of Monodevelop's Custom Command Mono Soft Debugger dialog?Monodevelop 的自定义命令 Mono Soft Debugger 对话框的“输出”字段中预期的内容是什么?
【发布时间】:2012-11-24 06:22:43
【问题描述】:

can't use normal debugging in Monodevelop,所以我想debug remotely as described here
这是整个过程:


在终端中输入:

export MONODEVELOP_SDB_TEST="YES"
monodevelop &

Monodevelop 启动。

  1. 打开您的解决方案
  2. Run -> Run With -> Custom Command Mono Soft Debugger
  3. 填写以下字段:
    1. 命令:/home/nico/src/CmisSync/bin/SparkleShare.exe
    2. 参数:-debug --debugger-agent=transport=dt_socket,address=127.0.0.1:10000(不确定是否需要)
    3. IP:127.0.0.1
    4. 端口:10000
    5. 输出:1
  4. Listen
  5. 返回终端,按:

mono --debug --debugger-agent=transport=dt_socket,address=127.0.0.1:10000 ./bin/SparkleShare.exe


问题:我按下Listen后,Monodevelop 在第 4 步崩溃:

System.InvalidOperationException: Standard output has not been redirected
  at System.Diagnostics.Process.get_StandardOutput () [0x00043] in /build/buildd/mono-2.10.8.1/mcs/class/System/System.Diagnostics/Process.cs:663 
  at MonoDevelop.Core.Execution.ProcessWrapper.CaptureOutput () [0x00000] in <filename unknown>:0 
  at System.Threading.Thread.StartInternal () [0x00016] in /build/buildd/mono-2.10.8.1/mcs/class/corlib/System.Threading/Thread.cs:703

当我按Connect 而不是Listen 时出现同样的错误。

也许我为Output 输入了错误的值? The source code shows that an integer value is expected.

Monodevelop 的这一部分是非常实验性的(他们不打算实现异常处理),所以在这种情况下向他们发送错误报告不会有成效......我很确定我只是误解了一些东西。

【问题讨论】:

    标签: debugging mono monodevelop remote-debugging


    【解决方案1】:

    这是正确的程序:

    在终端中输入:

    export MONODEVELOP_SDB_TEST="YES"
    monodevelop &
    

    Monodevelop 启动。

    1. 打开您的解决方案
    2. Run -&gt; Run With -&gt; Custom Command Mono Soft Debugger
    3. 填写以下字段:
      1. 命令:空
      2. 参数:空
      3. IP:127.0.0.1
      4. 端口:10000
      5. 输出:空
    4. Listen
    5. 返回终端,按:

    mono --debug --debugger-agent=transport=dt_socket,address=127.0.0.1:10000 ./bin/SparkleShare.exe

    现在可以在 Monodevelop 中调试应用程序了!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-05-18
      • 2011-01-09
      • 1970-01-01
      • 1970-01-01
      • 2016-11-03
      • 1970-01-01
      • 2017-02-16
      相关资源
      最近更新 更多