直接在ARM目标调试应用程序单 [英] Debugging mono applications directly on ARM target

查看:182
本文介绍了直接在ARM目标调试应用程序单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一个BeagleBone嵌入式ARM设备上安装单声道,希望通过USB连接一个Kinnect传感器和用C#进行控制/单声道

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

我想知道,是否单(我使用MonoDevelop的,但我想这个问题也适用于VS),让你在本地开发和调试,然后针对远程目标code?如果是的话如何可能?

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....

谢谢!

推荐答案

MonoDevelop的,如果你已经打算联网可以调试远程目标。 MonoDevelop的启动之前,你需要设置环境变量:

Monodevelop can debug remote targets if you have networking going. before launching monodevelop you need to set the environment variable:

MONODEVELOP_SDB_TEST=1

然后,当您启动MD你将有定制单声道软调试器作为调试方式的选项。

Then when you launch MD you'll have "Custom Mono Soft Debugger" as a "Debug With" option.

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

On the remote host, launch your debug target like so (I'm assuming it has a shell):

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

在单开发,设置断点,然后输入你的目标机器的IP地址及以上端口号,然后单击连接。这应该中断到调试器远程操作​​。

In Mono develop, set your breakpoints and then input the IP address of your target machine and the port number above and click Connect. That should break into the debugger remotely.

这篇关于直接在ARM目标调试应用程序单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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