简体   繁体   English

在qt creator中调试时如何访问字符串变量的完整值?

[英]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. 我正在调试我的c ++应用程序,我有一些字符串变量,可以有2000个字符或更多。 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? 我认为这必须是一个非常基本的东西,但我没有在qt creator中找到如何显示变量的实际完整内容? 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. 工具 - >调试器 - >本地和表达式中我已经将“最大字符串长度”和“显示字符串长度”更改为高于10.000的值,但它仍然只显示500个字符。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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