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

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

问题描述

我最近在 BeagleBone 嵌入式 ARM 设备上安装了 Mono,希望通过 USB 连接 Kinnect 传感器并使用 C#/Mono 控制它

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

我想知道,Mono(我正在使用 MonoDevelop 但我想这个问题也适用于 VS)是否允许您在本地开发然后针对远程目标调试代码?如果是这样,如何实现?

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?

我听说 Soft Debugger 可能是我需要的,但在浏览配置并查看文档后,我找不到我需要的东西......

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.

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

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

在 Mono 开发中,设置断点,然后输入目标机器的 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天全站免登陆