Author Topic: Debugging Functionality in C::B (Nice to have a Command-Line)  (Read 3611 times)

Offline kfmfe04

  • Multiple posting newcomer
  • *
  • Posts: 27
I was playing around a little with the debugging functionality in C::B 8.02.

I was wondering, how hard would it be to implement a window pane which hooks directly into gdb and allows you access to all the gdb functionality?  You just type in commands like up, down, or evaluation of variables, etc...  ...almost like the way emacs implements it would be fantastic - just a command-line interface.  The GUI would just be there to display the source and your current location.

I think debugging would be much more efficient this way - no need to play around with menus or commands - hands on the keyboard - no need for the mouse.  I would think this should be easier to implement than all the extra window-panes and menus that are currently in the system, but I have no idea what C::B looks like under the hood.

I really enjoy using C::B, but the way debugging is now, I am tempted to start up an xemacs + gdb session and debug my code that way...

Any ideas?

- Ken

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Debugging Functionality in C::B (Nice to have a Command-Line)
« Reply #1 on: July 18, 2009, 10:43:11 am »
Code::Blocks recently got a "Send command to debugger" text field added to the debugger pane. If that is what you really want, just download the most recent nightly build.

Offline kfmfe04

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: Debugging Functionality in C::B (Nice to have a Command-Line)
« Reply #2 on: July 18, 2009, 10:46:47 am »
Code::Blocks recently got a "Send command to debugger" text field added to the debugger pane. If that is what you really want, just download the most recent nightly build.

This sounds exactly like the functionality I am looking for.  THANKS!

--------------------------

Update:
Thanks to Jen's nightly builds, I was able to download svn5671 and try it out.

The "Send command to debugger" is exactly what I was looking for - the only quirk is, when I send a command like "up", the focus goes to the editor so I need to re-click on Command: in the Debug pane again - I wonder if there is a way to pin focus onto the Command window...
« Last Edit: July 18, 2009, 11:34:07 am by kfmfe04 »