rohanrhu / gdb-frontend

☕ GDBFrontend is an easy, flexible and extensible gui debugger. Try it on https://debugme.dev
https://oguzhaneroglu.com/projects/gdb-frontend/
GNU General Public License v3.0
2.79k stars 98 forks source link

FeatReq: Close windows in right sidebar #56

Open RenHoekNL opened 1 year ago

RenHoekNL commented 1 year ago

The right sidebar has a number of windows, however my screen is a little small on my laptop.

When I step through my program I want to keep an eye on the variables, but I can't see those without scrolling the sidebar down a bit.

Then I step, and the sidebar window is reset again to the top. Again, I can't see my variables anymore.

Fixes:

Ideally both these changes are put in. Thanks in advance.

rohanrhu commented 1 year ago

Hi @RenHoekNL thank you for your feedback.

GF got a feature about that it must keep your current scroll position on each step.

It must act like this:

https://user-images.githubusercontent.com/1125150/220484389-0d326f26-9b3e-4c6a-8a17-2b868e7a8cbe.mp4

Seems like it is not working for you 🙁

What is your browser? If it is not Chrome can you try it on Chrome?

RenHoekNL commented 1 year ago

Can confirm it 'works' in Chrome. I'm using Firefox 110.0 (64-bit).

It does jump the sidebar around in Chrome as well, at least it stick to the part I was using. It doesn't just stay where I was though and when I'm deep in structs I still have to scroll back.

It could use some TLC.

rohanrhu commented 1 year ago

Can confirm it 'works' in Chrome. I'm using Firefox 110.0 (64-bit).

Oh good... Just use Chrome till I fix it for the other browser.

It does jump the sidebar around in Chrome as well, at least it stick to the part I was using. It doesn't just stay where I was though and when I'm deep in structs I still have to scroll back.

It expands all previously opened structs right? I remember variables view has its own scrollable too I'm not sure if it has the same feature as the whole inspector side but I will add the same feature for that too.

sgbeal commented 5 months ago

Please consider this another request for the ability to remove unneeded right-side widgets. i literally never need the Registers window and it takes up a LOT of space which i'd much rather have for the Variables. i can use the browser's Inspector to remove the Registers widget, but then the Variables has a fixed max size so won't grow to fill that space. i can get around that by removing the max-height from div.VariablesExplorer_content it and adding resize:vertical to that element, but this is a tedious workaround.

rohanrhu commented 5 months ago

Please consider this another request for the ability to remove unneeded right-side widgets. i literally never need the Registers window and it takes up a LOT of space which i'd much rather have for the Variables. i can use the browser's Inspector to remove the Registers widget, but then the Variables has a fixed max size so won't grow to fill that space. i can get around that by removing the max-height from div.VariablesExplorer_content it and adding resize:vertical to that element, but this is a tedious workaround.

Hi @sgbeal my brain is really burning because of working and some other things but I'll find a time for these things soon.

I'll make right bar sections optionally enabled/disabled, I'll also make right bar's variables explorer dynamic-sized.