且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

直接在 ARM 目标上调试单声道应用程序

更新时间:2022-01-19 04:22:58

如果您有网络,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.