简体   繁体   中英

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.

Local和Expressions中 ,右键单击变量并单击Change Value Display Format ,然后在Change Display下键入QString,单击Separate Window

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM