赞
踩
1.选中项目右键,选择Debug As->Debug Configurations,选择C/C++ Remote Application。在Main标签下配置C/C++ Application 为执行程序的路径。
2.切换到Debugger标签页,点击select other,在弹出界面选择Manual Remote Debugging launcher。
3.之后debugger标签页会变成下图所示, 在connect标签页中,输入远程调试主机的ip地址和调试端口。点击apply,配置完成。
4.在远程调试主机上通过gdbserver运行程序,输入gdbserver 192.168.1.111:10000 ./Hello_World,然后在eclipse点击debug开始调试。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。