Visualizing GDB using -tui

Поделиться
HTML-код
  • Опубликовано: 21 янв 2025

Комментарии • 26

  • @tedburke525
    @tedburke525 3 месяца назад +1

    Thanks, very clear and informative. Also, I was not aware of Ctrl-L in bash terminal!!

  • @mr88cet
    @mr88cet 2 года назад +1

    Thanks for the refresher! I’ve been off in Eclipseland the past 6 years, so I’d forgotten many of the raw-gdb commands.

  • @miguel1972zz
    @miguel1972zz 4 года назад +1

    Great video, thank you very much!

  • @hungp9227
    @hungp9227 5 лет назад +1

    Amazing video!!

  • @netherlabgames7511
    @netherlabgames7511 4 года назад +1

    Great video! It was so easy to understand because you were super clear and well prepared! Thank you.

  • @koeithleomori6273
    @koeithleomori6273 2 года назад

    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

  • @IllumTheMessage
    @IllumTheMessage 4 года назад +1

    Good tips.

  • @mr88cet
    @mr88cet 2 года назад +1

    Two other super-useful GDB commands are “up” and “down” to view the “stack crawl,” so to speak.

    • @thomasgroechel9208
      @thomasgroechel9208  2 года назад +1

      I wish I knew these 4 years ago, thanks for sharing!

    • @mr88cet
      @mr88cet 2 года назад

      Another good one to remember is “finish,” which executes through the end of the current function and returns to its caller.

  • @testshar2117
    @testshar2117 2 года назад +1

    Does tui work in putty session? If not then what to do?

    • @thomasgroechel9208
      @thomasgroechel9208  2 года назад

      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

  • @wodowiesel
    @wodowiesel 5 лет назад +3

    cool vid but your audio is not so well, got echo through obs probably. its is a helpful flag indeed

  • @quidquopro1185
    @quidquopro1185 3 года назад +1

    Have used --tui a few years but my GUI always get messed up when am stepping, do you know a fix for that?

    • @thomasgroechel9208
      @thomasgroechel9208  3 года назад

      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

    • @quidquopro1185
      @quidquopro1185 3 года назад +1

      @@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..

  • @nicholaszamora2317
    @nicholaszamora2317 3 года назад +1

    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.

    • @thomasgroechel9208
      @thomasgroechel9208  3 года назад

      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)

    • @nicholaszamora2317
      @nicholaszamora2317 3 года назад

      @@thomasgroechel9208 Haha none of the docs on TUI are very intuitive, but much appreciated I'll take a look.

  • @botsynth
    @botsynth 4 года назад +1

    годно

  • @AlaaAreesPhoenix
    @AlaaAreesPhoenix Год назад

    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

    • @thomasgroechel9208
      @thomasgroechel9208  Год назад

      Are you running WSL? Not too familiar with windows outside of using WSL for development sadly

    • @AlaaAreesPhoenix
      @AlaaAreesPhoenix Год назад

      @@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)

    • @thomasgroechel9208
      @thomasgroechel9208  Год назад +1

      @@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

    • @AlaaAreesPhoenix
      @AlaaAreesPhoenix Год назад

      @@thomasgroechel9208 i do have vs code but i feel more comfortable using notepad++ 😆
      Anyway I'll check the link thanks sir💙

  • @abumia710
    @abumia710 5 лет назад +1

    Fxvi