Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to only show the current thread, or limit threads in the thread view #943

Closed
wizche opened this issue Apr 12, 2023 · 4 comments
Closed

Comments

@wizche
Copy link

wizche commented Apr 12, 2023

Type of feature request

Misc

Misc

UI related

Summary Description

When debugging big multi-threaded applications with hundreds of threads the thread view can fill up the terminal completely.
It would be nice that we can configure gef to only show the current thread only.

For now the only way is to disable thread view completely via the context.layout setting.

Implementation idea/suggestion

An additional settings like context.layout.singlethread

Existing alternatives?

No response

Additional information

No response

@Grazfather Grazfather changed the title Only show the current thread in the thread view Add option to only show the current thread, or limit threads in the thread view Apr 12, 2023
@hugsy
Copy link
Owner

hugsy commented Apr 13, 2023

It will probably go under context.nb_threads but that shouldn't long to implem.

Thanks for the idea.

@hugsy
Copy link
Owner

hugsy commented Apr 15, 2023

I must have been tired when I replied, I forgot it's already there:

gef/gef.py

Line 7112 in 8e3eba8

self["nb_lines_threads"] = (-1, "Number of line in the threads pane")

It's however not documented so that's on me. I will use this issue as a reference for a PR to come with all settings available.

@hugsy
Copy link
Owner

hugsy commented Apr 16, 2023

I am really tired, it's all documented:

https://hugsy.github.io/gef/settings/context/#setting-contextnb_lines_threads

@hugsy hugsy closed this as completed Apr 16, 2023
@wizche
Copy link
Author

wizche commented Apr 17, 2023

Thanks a lot @hugsy, the feature that are already there are the best one 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants