问题
I'm debugging my c++ application and I have some string variables which can have 2000 characters or more. When debugging, the variable's value is shown incomplete (ending with "...") instead of showing the correct value. Also when I right click the variable and select "Copy current VALUE to clipboard" it is also copied incomplete. I think this must be a very basic thing but I didn't found in qt creator how to show the actual complete content of the variable? Thanks in advance.
In Tools -> debugger -> Locals & Expressions I've already changed the "maximum string length" and "display string length" to values above 10.000 but it is still only showing 500 characters.
回答1:
In Local and Expressions, right click on the variable and click on Change Value Display Format, then under Change Display for type QString click on Separate Window
来源:https://stackoverflow.com/questions/52295248/how-to-access-the-complete-value-of-string-variables-when-debugging-in-qt-creato