本文介绍了在“输出”中期望的是什么Monodevelop的自定义命令单声道软调试器对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我,所以我试图。

以下是整个过程:






在终端中键入:

  export MONODEVELOP_SDB_TEST = YES
monodevelop&

Monodevelop启动。


  1. 打开你的解决方案

  2. 运行 - >运行 - >自定义命令单声道软调试器

  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. 收听

  5. 返回终端,按:

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






问题: Monodevelop在第4步崩溃,只要按下收听

  System.InvalidOperationException:在/build/buildd/mono-2.10中的System.Diagnostics.Process.get_StandardOutput()[0x00043]中没有重定向标准输出
.8.1 / mcs / class / Syst em / System.Diagnostics / Process.cs:663
在MonoDevelop.Core.Execution.ProcessWrapper.CaptureOutput()[0x00000] in< filename unknown>:0
在System.Threading.Thread.StartInternal ()[0x00016] in /build/buildd/mono-2.10.8.1/mcs/class/corlib/System.Threading/Thread.cs:703

当我按连接而不是收听时,出现同样的错误。 >

也许我输入的错误值为输出? 。



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



解决方案

这是正确的程序:



在终端中,键入: p>

  export MONODEVELOP_SDB_TEST =YES
monodevelop&

Monodevelop启动。


  1. 打开你的解决方案

  2. 运行 - >运行 - >自定义命令单声道软调试器

  3. 填写字段:


    1. 命令:空

    2. 参数:空

    3. IP: 127.0.0.1

    4. 端口: 10000

    5. 输出:空


  4. 收听

  5. 返回终端,按:

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



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


I can't use normal debugging in Monodevelop, so I am trying to debug remotely as described here.
Here is the whole procedure:


In a terminal, type:

export MONODEVELOP_SDB_TEST="YES"
monodevelop &

Monodevelop starts.

  1. Open your solution
  2. Run -> Run With -> Custom Command Mono Soft Debugger
  3. Fill the fields:

    1. Command: /home/nico/src/CmisSync/bin/SparkleShare.exe
    2. Arguments: -debug --debugger-agent=transport=dt_socket,address=127.0.0.1:10000 (not sure if needed)
    3. IP: 127.0.0.1
    4. Port: 10000
    5. Output: 1

  4. Press Listen
  5. Back to the terminal, press:

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


PROBLEM: Monodevelop crashes at step 4, as soon as I have pressed Listen:

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

Same error when I press Connect instead of Listen.

Maybe I entered the wrong value for Output? The source code shows that an integer value is expected.

This part of Monodevelop is very experimental (they are not planning to implement exception handling), so sending them a bug report would not be productive in this case... I am pretty sure I just misunudertood something.

解决方案

Here is the correct procedure:

In a terminal, type:

export MONODEVELOP_SDB_TEST="YES"
monodevelop &

Monodevelop starts.

  1. Open your solution
  2. Run -> Run With -> Custom Command Mono Soft Debugger
  3. Fill the fields:

    1. Command: Empty
    2. Arguments: Empty
    3. IP: 127.0.0.1
    4. Port: 10000
    5. Output: Empty

  4. Press Listen
  5. Back to the terminal, press:

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

Now application can be debugged in Monodevelop!

这篇关于在“输出”中期望的是什么Monodevelop的自定义命令单声道软调试器对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-24 12:47