gdb-dashboard icon indicating copy to clipboard operation
gdb-dashboard copied to clipboard

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

Open vs97849 opened this issue 1 year ago • 3 comments

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 .

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

vs97849 avatar Jan 09 '24 11:01 vs97849

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 avatar Jan 09 '24 22:01 cyrus-and

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.

cyrus-and avatar Jan 09 '24 22:01 cyrus-and

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

vs97849 avatar Jan 10 '24 05:01 vs97849