Hi, I need help with this. What if I want to check the stack frame constantly like I can in IDE? Coz I don't wanna do "back trace" or "info stack" everytime. It'd be great if "watch" command can do the work. Ideally, I would like to be able to create a windows which helps me monitor it
It should work within a putty session (I use it over ssh pretty often within my terminal), I think that is the biggest benefit (no need for access to a GUI/desktop environment); If that is not possible, there are more gdb gui based things such as gdbgui which you might be able to use (such as through SSH X forwarding: www.cs.utexas.edu/facilities/documentation/ssh-x-forwarding#:~:text=What%20is%20SSH%20X%20forwarding,and%20is%20easy%20to%20setup.) It really depends on the setup
@@thomasgroechel9208 Thank you! Yes it is much quicker. As of now I have had to scroll all I want to see out of window and then back in again, it have not been the quickest way to say the least..
Hey Thomas, thanks for the video. I know you made it a while ago but had a question. When I use -tui my source code shows up but for some reason no side column to see my breakpoints I set, any ideas? Much appreciated.
Possibly a tui configuration? You might want to check out here: sourceware.org/gdb/onlinedocs/gdb/TUI-Configuration.html#TUI-Configuration (admittedly not the most intuitive docs)
@@thomasgroechel9208 no I'm not using anything related to linux , I've just tried gdb in the default command prompt for Windows 10 and the notepad++ cosole window (with nppExec plugin)
@@AlaaAreesPhoenix elinux.org/Windows_GDB_Debugger#:~:text=from%20any%20directory.-,Starting%20GDB,Run%22%20in%20the%20Start%20menu. you may be able to try this. In my opinion, looking at debugging with vs code would be my go to on windows for the most part: code.visualstudio.com/docs/cpp/cpp-debug
Thanks, very clear and informative. Also, I was not aware of Ctrl-L in bash terminal!!
Thanks for the refresher! I’ve been off in Eclipseland the past 6 years, so I’d forgotten many of the raw-gdb commands.
Great video, thank you very much!
Amazing video!!
Great video! It was so easy to understand because you were super clear and well prepared! Thank you.
Hi, I need help with this. What if I want to check the stack frame constantly like I can in IDE? Coz I don't wanna do "back trace" or "info stack" everytime. It'd be great if "watch" command can do the work.
Ideally, I would like to be able to create a windows which helps me monitor it
Good tips.
Two other super-useful GDB commands are “up” and “down” to view the “stack crawl,” so to speak.
I wish I knew these 4 years ago, thanks for sharing!
Another good one to remember is “finish,” which executes through the end of the current function and returns to its caller.
Does tui work in putty session? If not then what to do?
It should work within a putty session (I use it over ssh pretty often within my terminal), I think that is the biggest benefit (no need for access to a GUI/desktop environment); If that is not possible, there are more gdb gui based things such as gdbgui which you might be able to use (such as through SSH X forwarding: www.cs.utexas.edu/facilities/documentation/ssh-x-forwarding#:~:text=What%20is%20SSH%20X%20forwarding,and%20is%20easy%20to%20setup.) It really depends on the setup
cool vid but your audio is not so well, got echo through obs probably. its is a helpful flag indeed
Have used --tui a few years but my GUI always get messed up when am stepping, do you know a fix for that?
Last time I used it pressing ctrl+L (no shift) reset the GUI I believe. It still gets messed up but ctrl+L is a reasonably quick way to reset it
@@thomasgroechel9208 Thank you! Yes it is much quicker. As of now I have had to scroll all I want to see out of window and then back in again, it have not been the quickest way to say the least..
Hey Thomas, thanks for the video. I know you made it a while ago but had a question. When I use -tui my source code shows up but for some reason no side column to see my breakpoints I set, any ideas? Much appreciated.
Possibly a tui configuration? You might want to check out here: sourceware.org/gdb/onlinedocs/gdb/TUI-Configuration.html#TUI-Configuration (admittedly not the most intuitive docs)
@@thomasgroechel9208 Haha none of the docs on TUI are very intuitive, but much appreciated I'll take a look.
годно
I am using windows and when i try to switch into tui the cmd says that tui is not supported , how to i install it?
And thanks
Are you running WSL? Not too familiar with windows outside of using WSL for development sadly
@@thomasgroechel9208 no I'm not using anything related to linux , I've just tried gdb in the default command prompt for Windows 10 and the notepad++ cosole window (with nppExec plugin)
@@AlaaAreesPhoenix elinux.org/Windows_GDB_Debugger#:~:text=from%20any%20directory.-,Starting%20GDB,Run%22%20in%20the%20Start%20menu. you may be able to try this. In my opinion, looking at debugging with vs code would be my go to on windows for the most part: code.visualstudio.com/docs/cpp/cpp-debug
@@thomasgroechel9208 i do have vs code but i feel more comfortable using notepad++ 😆
Anyway I'll check the link thanks sir💙
Fxvi