“输出"中的预期内容Monodevelop 的自定义命令 Mono 软调试器对话框的字段? [英] What is expected in the "Output" field of Monodevelop's Custom Command Mono Soft Debugger dialog?

查看:14
本文介绍了“输出"中的预期内容Monodevelop 的自定义命令 Mono 软调试器对话框的字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法在Monodevelop中正常调试,所以我尝试按照此处所述进行远程调试.
这是整个过程:

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

在终端中输入:

export MONODEVELOP_SDB_TEST="YES"
monodevelop &

Monodevelop 启动.

Monodevelop starts.

  1. 打开您的解决方案
  2. 运行->运行 ->自定义命令 Mono 软调试器
  3. 填写以下字段:
  1. Open your solution
  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. 端口:10000
  5. 输出:1
  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

  • 收听
  • 返回终端,按:
  • mono --debug --debugger-agent=transport=dt_socket,address=127.0.0.1:10000 ./bin/SparkleShare.exe

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

    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
    

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

    Same error when I press Connect instead of Listen.

    也许我为 Output 输入了错误的值?源代码显示需要一个整数值.

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

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

    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.

    推荐答案

    正确的步骤如下:

    在终端中输入:

    export MONODEVELOP_SDB_TEST="YES"
    monodevelop &
    

    Monodevelop 启动.

    Monodevelop starts.

    1. 打开您的解决方案
    2. 运行->运行 ->自定义命令 Mono 软调试器
    3. 填写以下字段:
    1. Open your solution
    2. Run -> Run With -> Custom Command Mono Soft Debugger
    3. Fill the fields:
    1. 命令:空
    2. 参数:空
    3. IP:127.0.0.1
    4. 端口:10000
    5. 输出:空

  • 收听
  • 返回终端,按:
  • mono --debug --debugger-agent=transport=dt_socket,address=127.0.0.1:10000 ./bin/SparkleShare.exe

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

    Now application can be debugged in Monodevelop!

    这篇关于“输出"中的预期内容Monodevelop 的自定义命令 Mono 软调试器对话框的字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆