Eclipse CDT中的方法/功能断点 [英] Method/Function Breakpoints in Eclipse CDT

查看:190
本文介绍了Eclipse CDT中的方法/功能断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调试被编译用于调试的可执行文件(没有源代码)。 GDB有选择在特定功能上设置断点,例如 break division()



有没有办法相同的东西在Eclipse CDT ???
谢谢!

解决方案

我不知道在没有源代码的情况下调试是有用的,但是在这里是一种方法。



假设您将可执行文件加载到Eclipse项目中:




  • 转到Debug透视图,打开Debug Configurations(调试配置)窗口(您可以在Run菜单中找到它)。

  • 在左侧选择您的可执行文件,然后按调试器选项卡。

  • 检查启动停止复选框,并在文本字段中输入功能名称。

  • 按调试按钮,您的调试会话将启动,并停止您输入的功能。



编辑: shot:


I am debugging executable (without source code) that was compiled for debugging. GDB has option to set breakpoints at specific function, like break division()

Is there a way to do the same thing in Eclipse CDT ??? Thanks !

解决方案

I am not sure how useful it is for you to debug without the source code, but here is a way to do it.

Assuming you have the executable loaded into an Eclipse project:

  • Go to the Debug perspective, and open the "Debug Configurations" window (you can find it under the "Run" menu).
  • Choose your executable on the left side, and press the "Debugger" tab.
  • Check the 'Stop on startup' checkbox, and in the text field enter the function name.
  • Press the 'Debug' button and your debug session will launch, and stop at function you entered.

EDIT: here is the screen-shot:

这篇关于Eclipse CDT中的方法/功能断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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