Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Debugging issue (immediate window, watch) with VS2012 and QT 5.0.2

Debugging issue (immediate window, watch) with VS2012 and QT 5.0.2

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Grybb
    wrote on last edited by
    #1

    Hi,

    I use W7, VS2012 with QT5 addin 1.2.1 and QT 5.0.2.
    And I have problem with debugging. For example I have following piece of code:

    @void MainWindow::OnTestButtonClicked()
    {

    // ...
    // resultListWidget is QListWidget
    if (resultListWidget->count() != sqlOrder.size())
    {
        // ...
    }
        // ...
    

    }@

    and I put breakpoint somewhere inside the function (method if you prefer). When breakpoint is hit I cannot use resultListWidget in immediate window, example:

    resultListWidget->count()
    Function QListWidget::count has no address, possibly due to compiler optimizations.

    But no optimization is used and everything is built in debug.

    Then there is a problem with Watch functionality. Or maybe problem is a bit strong word. It is that find in QuickWatch window e.g. value which represent 'resultListWidget->count()' is not very user friendly (I know that it is because of way how is QT written). It is actually very hard to find. As far as I know VS allow to display debug information more friendly in watch windows. Is there any plugin or other possibility to achieve some more nice way to display it?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved