Monodevelop 的自定义命令 Mono Soft Debugger 对话框的“输出”字段中期望什么?

2024-02-25

I 无法在 Monodevelop 中使用正常调试 https://stackoverflow.com/questions/11963904/monodevelop-waiting-for-debugger,所以我想按照此处所述进行远程调试 https://stackoverflow.com/a/12395786/226958.
这是整个过程:


在终端中,输入:

export MONODEVELOP_SDB_TEST="YES"
monodevelop &

Monodevelop 启动。

  1. 打开您的解决方案
  2. Run -> Run With -> Custom Command Mono Soft Debugger
  3. Fill the fields:
    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. Port: 10000
    5. Output: 1
  4. Press Listen
  5. 返回终端,按:

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


PROBLEM:一旦我按下,Monodevelop 在第 4 步崩溃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

当我按时出现同样的错误Connect代替Listen.

也许我输入了错误的值Output? 源代码显示需要一个整数值 http://searchco.de/codesearch/view/20107542#296.

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


这是正确的程序:

在终端中,输入:

export MONODEVELOP_SDB_TEST="YES"
monodevelop &

Monodevelop 启动。

  1. 打开您的解决方案
  2. Run -> Run With -> Custom Command Mono Soft Debugger
  3. Fill the fields:
    1. 命令:空
    2. 参数:空
    3. IP: 127.0.0.1
    4. Port: 10000
    5. 输出:空
  4. Press Listen
  5. 返回终端,按:

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

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

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Monodevelop 的自定义命令 Mono Soft Debugger 对话框的“输出”字段中期望什么? 的相关文章

随机推荐