Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23840

"Copy current value to clipboard" from Locals string breaks off contents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.11.1
    • Debugger
    • None
    • Linux/X11

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hjk hjk
              andre André Somers
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes