Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access the complete value of string variables when debugging in qt creator?

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.

like image 809
Fnr Avatar asked Sep 12 '18 12:09

Fnr


People also ask

What is unclaimed breakpoint in Qt Creator?

Unclaimed breakpoints are stored as a part of a session and exist independently of whether a program is being debugged or not. They are listed in the Breakpoint Preset view and in the editor using the (Unclaimed Breakpoint) icon, when they refer to a position in code.


1 Answers

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

like image 152
Phiber Avatar answered Sep 27 '22 22:09

Phiber