Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to go line by line execution, similar to Borland C, in which when i press F7 it executes the code line by line, Is this possible in gcc.
Have you actually looked at the link that BrianL provided?
Quote:
Next and Step
Just starting and stopping isn't much of a control. GDB also lets you to run the program line-by-line by the commands 'next' and 'step'. There is a little difference between the two, though. Next keeps the control strictly in the current scope whereas step follows the execution through function calls.
I want to go line by line execution, similar to Borland C, in which when i press F7 it executes the code line by line, Is this possible in gcc.
Who in the world still uses Borland C? I honestly have not heard that word this entire millennium. I shouldn't knock it, I used it a lot back in the 80's as well as TurboDebugger, which was also a Borland product I believe.
What brianL and jdkaye said. GDB is very good and if you're not going to take the time to review an answer or ask a follow up, but just present your terms on exactly what you want, then you're not going to be too successful in your Linux ventures.
A thing to note is that GDB integrates very well with Emacs and when you run GDB from within Emacs, you get some more helpful UI based controls, all available in the command line, but just more well presented within Emacs.
So, run Emacs to create a Hello World! C source, you actually can compile from within Emacs using the compile command, but you should edit the command to just be "gcc -o <output-file-name> <source-file-name> and it will do a simple compile. You then can debug from within Emacs by issuing the gdb command from with Emacs. I think you'll like the interface, if you actually give it a try.
but in ns-2 every c++ objects will be converted to Otcl objects, so how can i debug line by line
I just want to know while aodv.cc, aodv.hh executes which function is called when
but in ns-2 every c++ objects will be converted to Otcl objects, so how can i debug line by line
I just want to know while aodv.cc, aodv.hh executes which function is called when
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.