Bug 386103 - Frame stack depth hard coded to 20
Summary: Frame stack depth hard coded to 20
Status: CONFIRMED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: debugger (show other bugs)
Version: git master
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2017-10-23 11:55 UTC by malcolm macleod
Modified: 2017-10-23 12:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description malcolm macleod 2017-10-23 11:55:17 UTC
It seems the frame stack depth to display is hardcoded here: https://github.com/KDE/kdevelop/blob/f5b25083620dc518f5fa5ed3e3e237390614d7db/kdevplatform/debugger/framestack/framestackmodel.cpp#L295

In template heavy code 20 is often not enough to see what is going on properly, especially when e.g. breaking a multithreaded program mid execution and then wanting to step through all of the threads to view what is going on at the time.

It would be good as a simple solution if at a minimum this "upper limit" value could be increased via the settings/preferences, while 20 is sufficient for many people I'd prefer to set it to 40.

A more complex solution could perhaps both have a configurable "upper limit" value as well as a "..." button at the bottom of the stack where the user can click to fetch more items.
Comment 1 malcolm macleod 2017-10-23 12:13:19 UTC
On closer inspection I see I slightly misdiagnosed the issue.

If I change kdevelop into a small windowed mode where "20 stack items" is taller than the window, then I get a scrollbar and the additional stack items appear upon scrolling.

If I am running fullscreen then 20 stack items fit comfortably without a scrollbar showing, and at this point there is no way to get more stack items (except to shrink the window).

So I guess the real issue then is that this should be handled differently for larger window sizes - though I still think a way to just increase the default might also be good.