【问题标题】:How to prepare eclipse setting for remote debugging如何为远程调试准备 Eclipse 设置
【发布时间】:2019-04-28 05:04:51
【问题描述】:

我正在尝试调试在另一台目标(远程)机器上运行的应用程序。我可以在远程机器上运行这个应用程序并在管理员用户权限下调试我的代码。但是我需要在 root 权限下启动 gdbserver 和我的应用程序以了解确切的行为,所以我无法使用 root 启动 gdbserver 和应用程序。有没有人可以帮助我?

【问题讨论】:

标签: c++ eclipse gdbserver


【解决方案1】:

我还没有使用最近的 Eclipse 版本,但这里是我的笔记。 不确定所有菜单/选项卡名称(我不使用英文版)

在目标上你必须运行指定端口的 gdb 服务器

target #  gdbserver :3210 ./mytest

在开发平台上

eclipse 配置:(/ 表示子菜单或选项卡,除非引用)

 run / 'debug configuration' / 'C/C++ remote application' / 

 main-tab / set : Manual remote debugging (lower part)
 debugger-tab / main-tab / set gdb debugger: 
 debugger-tab / connection-tab / set: tcp , ip(target ip) , port(3210)

希望对你有帮助

【讨论】:

  • 感谢您的回答,但我不明白哪一部分与 root 特权有关?
  • 检查:gdbserver --wrapper env
猜你喜欢
  • 2016-05-06
  • 2015-08-01
  • 2018-05-06
  • 1970-01-01
  • 2020-12-21
  • 2011-05-13
  • 1970-01-01
  • 1970-01-01
  • 2011-05-13
相关资源
最近更新 更多