6

I've recently installed Mono on a BeagleBone embedded ARM device, looking to connect a Kinnect sensor by USB and control it with C#/Mono

I'm wondering, does Mono (I'm using MonoDevelop but I guess this question also applies to VS) allow you to develop locally and then debug the code against a remote target? If so how can this be accomplished?

I've heard that the Soft Debugger might be what I need but after poking around in the configuration and having a look at the docs I can't find what I need....

Thanks!

4

1 回答 1

11

如果您有网络连接,Monodevelop 可以调试远程目标。在启动 monodevelop 之前,您需要设置环境变量:

MONODEVELOP_SDB_TEST=1

然后,当您启动 MD 时,您将拥有“自定义 Mono Soft Debugger”作为“调试方式”选项。

在远程主机上,像这样启动您的调试目标(我假设它有一个外壳):

mono --debug \
--debugger-agent=transport=dt_socket,address=0.0.0.0:12345,server=y \
myprogram.exe

在 Mono 开发中,设置断点,然后输入目标机器的 IP 地址和上面的端口号,然后单击连接。那应该远程进入调试器。

于 2012-06-02T18:56:31.347 回答