Results 1 to 2 of 2

Thread: Inspection

  1. #1
    Join Date
    Jul 2010
    Posts
    72
    Thanks
    35
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Inspection

    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

  2. #2
    Join Date
    Jul 2010
    Posts
    30
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Inspection

    hello
    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
    Qt Code:
    1. qDebug("Your desired value");
    To copy to clipboard, switch view to plain text mode 
    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
    Last edited by .:saeed:.; 4th August 2010 at 20:59.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.