diff options
author | David Schulz <david.schulz@qt.io> | 2023-02-27 07:18:57 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2023-03-07 11:14:54 +0000 |
commit | ae2690e4b16ae686da8443bf59584a900890a39c (patch) | |
tree | 5e7442cd5f604343e6794eb4a2c9de5a59ec35e8 /src/plugins/debugger/debuggeractions.cpp | |
parent | 0f1f5435ea4f3cca043b87549c74c076f20ab019 (diff) | |
download | qt-creator-ae2690e4b16ae686da8443bf59584a900890a39c.tar.gz |
Debugger: make default number of array elements configurable
Change-Id: Iad7b653d66f9f87d818f8cce612a82a5fc391b23
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/debuggeractions.cpp')
-rw-r--r-- | src/plugins/debugger/debuggeractions.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp index a3a6187a41..208ca88d61 100644 --- a/src/plugins/debugger/debuggeractions.cpp +++ b/src/plugins/debugger/debuggeractions.cpp @@ -531,6 +531,15 @@ DebuggerSettings::DebuggerSettings() + Tr::tr("The maximum length for strings in separated windows. " "Longer strings are cut off and displayed with an ellipsis attached.")); + defaultArraySize.setSettingsKey(debugModeGroup, "DefaultArraySize"); + defaultArraySize.setDefaultValue(100); + defaultArraySize.setRange(10, 1000000000); + defaultArraySize.setSingleStep(100); + defaultArraySize.setLabelText(Tr::tr("Default array size:")); + defaultArraySize.setToolTip("<p>" + + Tr::tr("The number of array elements requested when expanding " + "entries in the Locals and Expressions views.")); + expandStack.setLabelText(Tr::tr("Reload Full Stack")); createFullBacktrace.setLabelText(Tr::tr("Create Full Backtrace")); @@ -610,6 +619,7 @@ DebuggerSettings::DebuggerSettings() page4.registerAspect(&showQObjectNames); page4.registerAspect(&displayStringLimit); page4.registerAspect(&maximalStringLength); + page4.registerAspect(&defaultArraySize); // Page 5 page5.registerAspect(&cdbAdditionalArguments); |