Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.11.1
-
None
Description
I am debugging using QtC on a Linux system with GDB.
I want to copy a large (few hundred characters) string to the clipboard as part of my debugging session (it's an SQL statement, I want to try it in an SQL tool directly). I have set a breakpoint in the code where I have access to the variable that contains the value, and right-click on the variable in the Locals pane and select 'Copy Current Value to Clipboard'. This, as it turns out, only copied the first 100 characters of the string, while the rest of the string was clearly available. If you fold open the value, a list of all few hundred characters is shown.
It turns out you need to set tools->options->debugger->locals and set the Display String length to some high value. The "Maximum String Length" set there seems to have no impact. While I accept the need for some maximum, I would have expected the copy operation to work up to the Maximum String Length set there, not the Display String Length.
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-13192 Copy string to variable truncates it
- Reported