PDA

View Full Version : Inspection



Maluko_Da_Tola
4th August 2010, 20:33
Hi,

How do I inspect the value of variables during running/debugging time? For example, if I have a tridimensional array, how can I check if all the entries are correctly calculated?

Cheers

.:saeed:.
4th August 2010, 20:51
hello:o
Excuse me , I can't write, speak ,... English very well.
If you are using visual studio, It is quite simple, use 'Watch window' or 'Auto Window',
Debug > Windows > Watch
Debug > windows > autos
and if you are using Creator you can use 'Locals and watching'.
and in both, you can write

qDebug("Your desired value");
this statement will print the string to output window.

You can also use Memory window in visual studio. simply ,You enter the address of your variable and the memory window will show you Memory values around your entered address. It is better for arrays that has been created using new operator.
NOW, You help me for learning ENGLISH, Say My MISTAKES:D;)