问题描述
我,所以我试图。
以下是整个过程:
在终端中键入:
export MONODEVELOP_SDB_TEST = YES
monodevelop&
Monodevelop启动。
- 打开你的解决方案
-
运行 - >运行 - >自定义命令单声道软调试器
- 填写字段:
- 命令:
/home/nico/src/CmisSync/bin/SparkleShare.exe
- 参数:
-debug --debugger-agent = transport = dt_socket,address = 127.0.0.1:10000
(不确定是否需要) - IP:
127.0.0.1
- 端口:
10000
- 输出:
1
- 命令:
- 按
收听
- 返回终端,按:
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启动。
- 打开你的解决方案
-
运行 - >运行 - >自定义命令单声道软调试器
- 填写字段:
- 命令:空
- 参数:空
- IP:
127.0.0.1
- 端口:
10000
- 输出:空
- 按
收听
- 返回终端,按:
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.
- Open your solution
Run -> Run With -> Custom Command Mono Soft Debugger
- Fill the fields:
- Command:
/home/nico/src/CmisSync/bin/SparkleShare.exe
- Arguments:
-debug --debugger-agent=transport=dt_socket,address=127.0.0.1:10000
(not sure if needed) - IP:
127.0.0.1
- Port:
10000
- Output:
1
- Command:
- Press
Listen
- 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.
- Open your solution
Run -> Run With -> Custom Command Mono Soft Debugger
- Fill the fields:
- Command: Empty
- Arguments: Empty
- IP:
127.0.0.1
- Port:
10000
- Output: Empty
- Press
Listen
- 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的自定义命令单声道软调试器对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!