GDB Quick Guide
I found out I didn't need cgdb by the way, it was better to just gdb -tui on Debian. Less modem noise in the form of uninterpreted escape sequences too.
So it paid up to do gdb -help.
The guide doesn't mention watch or watch -l but it points to Debugging with GDB where you can find everything.
It is a good quick start, with a couple of examples.
Hi all,
Anyone know of any courses for an intermediate-advanced C programmer to really learn GDB?
I've been using printf debugging for too long and only know the very basics of GDB debugging (taught alongside an O/S dev course I completed).
Courses would be my preferred method.
Videos
I recently started a big boy job and have slowly transitioned into doing nothing but C programming, and I am working with a large enough code base, much of which is asynchronous, that I am past the point of being able to debug with prinft and friends. I'm looking for a GDB web tutorial that spans from basics to more advanced techniques. If not are there any books that you'd recommend? Thanks.
I use vscode for debugging and I just realize *myptr@len works in the watch window. IIRC the debug prompt there is gdb but I know very little. I should learn GDB
Do you guys have any protips about what I should learn/use ASAP? Somehow I have never seen @ in any gdb tutorials I looked at so I prefer to know a little so I can tell if the tutorial is low quality/missing a lot
Curious how many of you use raw GDB when debugging C programs. Is it worth learning? Or is it better to find some front end program with buttons / watch-windows etc.?
Hello, I’m working with c/c++ and want to learn debugging. On reviewing i found to make use of GDB and Valgrind. I went up ahead on internet and searched through and got so many resources, will like reviews from you people on a good resource to begin learning them.
In my life when i was learning c/c++ i found many resources over time and recently discovered KN KING book and loved it. Honestly, i regret why i couldn’t spot it earlier because i never asked for it from people and real experiences, i picked the book what my course suggested and honestly the book was horrible.
This time since I’m going to pick up a new thing to learn i want to directly choose a good community recommendation, rather than spending a lot of time to go through multiple options try them and after few months find that something was missed there, I want to stick to one and give it time and my effort.
Many thanks for reading this.
G'day, I've been learning C for a fair while now. I'm currently just playing around on HackerRank, trying to get 'job ready'.
Printing patterns is something I just haven't been able to get my head around quite yet. But stepping through other people's code/my own code with GDB has been extremely helpful. Just thought I'd share this little tip, as you get to really visualize what is going on.
Hello denizens of r/learnprogramming:
So I've been learning C++ and I've gotten to the point where I've started writing larger programs where I need to use a debugger to help me fix my code. I'm using MinGW G++ and it comes with GDB. I don't know how to used GDB. The book that I'm using to learn C++ doesn't cover debugging, because that is tool specific.
So what are some good guides or tutorials for using GDB in MinGW on MS Windows?
-u/lead999x
Despite how popular gdb is I cant find some good tutorial for gdb when I google it. All I can find are some basic stuff (how to install it, start it, basic breakpoint things...). Is there some website, youtube playlist or book explaining gdb in much detail?