开发者

How to use the GDB console in Eclipse CDT?

Is there a way how I can access g开发者_如何学Pythondb's console in Eclipse? I would like to just be able to set breakpoints with the mouse and then use the console for debugging.


You must click here

How to use the GDB console in Eclipse CDT?

Next select one with *gdb

How to use the GDB console in Eclipse CDT?

Now you can write GDB commands in console example:

How to use the GDB console in Eclipse CDT?


First of all, you need to install CDT plugin. Then, you can debug C++ application like Java application in Eclipse.

If you want gdb console, push 'Display Selected Console' in Console view in Debug perspective.

You can choose '[Your App name][C/C++ Application]gdb' entry, and then you can type gdb instruction(i.e. print this) in Console View.


It is possible to write in the console window and gdb answers. (You have to choose the right console window from the chooser in the top right edge of the console view).

Unfortunately the console is quite limited: gdb answers to command, but important features like tab-completion do not work.


Window > Show view > "Debugger Console" is the right way as of Eclipse CDT 4.7.0.

You can then type certain commands like print on the console and they will be evaluated.

Other more "active" commands like continue have no effect however.

Mentioned on this comment.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜