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

ⅰ亾dé卋堺 提交于 2019-12-10 15:27:31

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!