cyrus-and / gdb-dashboard

Modular visual interface for GDB in Python
MIT License
10.99k stars 768 forks source link

On gdb shell, print <var_nam> must wait for user to press enter for more and q for quit and c for continue to print till end. But not happening #309

Open vs97849 opened 8 months ago

vs97849 commented 8 months ago

On gdb shell, print must wait for user to press enter for more and q for quit and c for continue to print till end. But not happening .

It seems like by default it acting like it assuming user typed c(continue). So it prints the whole object on gdb shell . So had to scroll up to see from start. And is impossible when tui mode is in or Ctrl x + a . Kindly provide options (or suggest): to wait for user to enter continue and press enter to go line by line.

@rcaputo @lucianposton @Reinis @braiden @cyrus-and @ProfDiesel @clint4cake @10110111 @cs01 @ccalmels @Quinny @xeyownt @javier-cabezas @jannewulf @lucianposton @a

cyrus-and commented 8 months ago

Pagination is disabled because paging the dashboard is terrible UX.

https://github.com/cyrus-and/gdb-dashboard/blob/c6b377277cb7ab48be0098d765633beb7f241567/.gdbinit#L597

Previously, I disabled the pagination just during the rendering, but it didn't work well with macOS (for whatever reason).

With my current GDB version (13.2) instead it seems that pagination doesn't affect the dashboard anymore, so I guess I can just get rid of that altogether. But I need to experiment further...

In the meanwhile, try to kill the above line in your .gdbinit.

PS @vs97849 please don't mention random contributors, it's unnecessary noise.

cyrus-and commented 8 months ago

As a side note, since the dashboard (by default) discards the terminal's scrollback buffer, it's quite convenient to just scroll back, since there will not be a lot of content.

vs97849 commented 8 months ago

Thanks a lot Andrea , I will try disabling that. for second note will remember next time.

On Wed, Jan 10, 2024 at 3:40 AM Andrea Cardaci @.***> wrote:

Pagination is disabled because paging the dashboard is terrible UX.

https://github.com/cyrus-and/gdb-dashboard/blob/c6b377277cb7ab48be0098d765633beb7f241567/.gdbinit#L597

Previously, I disabled the pagination just during the rendering, but it didn't work well with macOS (for whatever reason).

With my current GDB version (13.2) instead it seems that pagination doesn't affect the dashboard anymore, so I guess I can just get rid of that altogether. But I need to experiment further...

In the meanwhile, try to kill the above line in your .gdbinit.

PS @vs97849 https://github.com/vs97849 please don't mention random contributors, it's unnecessary noise.

— Reply to this email directly, view it on GitHub https://github.com/cyrus-and/gdb-dashboard/issues/309#issuecomment-1883882777, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEE2OHDMCQ2PPSGSRAXYPTTYNW55JAVCNFSM6AAAAABBS5WUOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBTHA4DENZXG4 . You are receiving this because you were mentioned.Message ID: @.***>