Debuging with command line

Hello.
I read doc abaut debuging with eclips. DS.
Tell me, is it possible to debug a program in Linux from the command line in ubuntu?
and how to do it?

you can ssh into the module and type logread to read the debug message in order to debug.

and I mean remote debugging of linux.
in the likeness of this
http://devarea.com/linux-remote-debugging-with-gdb/#.XGvFuKIzaUk