Re: C Programming on shell



On 29 Sep, 17:07, Outspan <borghibor...@xxxxxxxxx> wrote:

I'd like to give C programming from shell a try.

I think you mean you want to work in the console
rather than "from shell".

but my question is: isn't there a way to integrate vim and gdb (watches,
breakpoints etc on the shell)? If I got it right, both GdbVim and Clewn
do what I'm looking for, but just on the GUI version of vim. How do you
program from shell? Suggestions?

gdb --tui is good, as well as cgdb, which provides an ncurses
front end to gdb. Neither attempt to integrate with
your editor. I would recommend you run gnu screen, run vim in one
screen tab and run gdb in a seperate tab. If you
want to view both simultaneously,
use screen's split screen functionality. Make sure
you always run make from within gdb rather than from vim.

.



Relevant Pages

  • Re: C programming from shell
    ... breakpoints etc on the shell)? ... but just on the GUI version of vim. ... Then use cc from the command line to compile. ... Then run gdb from the command line to debug. ...
    (alt.os.linux)
  • Re: C programming from shell
    ... I'd like to give C programming from shell a try. ... but just on the GUI version of vim. ... As for integrating vim with gdb, ... `middle' if ADDR is in the middle of the line, or `beg' if ADDR is at ...
    (comp.unix.shell)
  • Re: Dynamic library cannot be loaded when run from gdb
    ... But when I run it through gdb or ddd, ... it runs fine on the command line. ... If your shell proceeds to reset LD_LIBRARY_PATH, ... In order to understand recursion you must first understand recursion. ...
    (comp.unix.programmer)
  • Re: How To Debug a Running Shell Script
    ... According to the gdb docs, it looks like this can be done, but I wanted ... When `exec-wrapper' is set, the specified wrapper is used to launch ... for your shell. ... Any Unix shell script ending with exec "$@" will also work. ...
    (comp.unix.shell)
  • Re: C programming from shell
    ... I'd like to give C programming from shell a try. ... but just on the GUI version of vim. ... vim really isn't very good at interfacing with gdb, ...
    (alt.os.linux)