I use visual studio 2012 and Qt4.8.5, unfortunately I can not see the QString text variable when I work in debug mode. Is someone has a tip allow it ? Qt4.8.5 plug-in doesn't exist for VS2012.
Thank a lot
Xavier
I use visual studio 2012 and Qt4.8.5, unfortunately I can not see the QString text variable when I work in debug mode. Is someone has a tip allow it ? Qt4.8.5 plug-in doesn't exist for VS2012.
Thank a lot
Xavier
For Visual Studio 2015...
Tools > Options > Debugging > General > Check "Use Native Compatibility Mode"
There is a quick and explicit solution (MSVC native, no need for plugins nor setting up .dat files), see my answer from here
Say you have
QString str
(Qt4), then add to the debugger watch window:the appendix
,su
tells the debugger to interpret the data as unicode and null terminated string.Note: For a Qt5
QString str
it could bethe autoexp.dat is not used unless you set the Debugger options to "Enable native Edit and Continue"
here is my natvis implementation of the QString for 4.8.5 (expands only the first 25 chars)
at least the qt4.natvis can coexist with the qt5.natvis as one or the other fails to load correctly...
For me, in Qt5 and Visual Studio 2012, i just did this:
Project options -> debugging -> Debugger type -> Set it from Auto to Mixed.
Not the strings are displayed in the watch.