I 无法在 Monodevelop 中使用正常调试 https://stackoverflow.com/questions/11963904/monodevelop-waiting-for-debugger,所以我想按照此处所述进行远程调试 https://stackoverflow.com/a/12395786/226958.
这是整个过程:
在终端中,输入:
export MONODEVELOP_SDB_TEST="YES"
monodevelop &
Monodevelop 启动。
- 打开您的解决方案
Run -> Run With -> Custom Command Mono Soft Debugger
- Fill the fields:
- 命令:
/home/nico/src/CmisSync/bin/SparkleShare.exe
- 论据:
-debug --debugger-agent=transport=dt_socket,address=127.0.0.1:10000
(不确定是否需要)
- IP:
127.0.0.1
- Port:
10000
- Output:
1
- Press
Listen
- 返回终端,按:
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 启动。
- 打开您的解决方案
Run -> Run With -> Custom Command Mono Soft Debugger
- Fill the fields:
- 命令:空
- 参数:空
- IP:
127.0.0.1
- Port:
10000
- 输出:空
- Press
Listen
- 返回终端,按:
mono --debug --debugger-agent=transport=dt_socket,address=127.0.0.1:10000 ./bin/SparkleShare.exe
现在应用程序可以在 Monodevelop 中调试了!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)