Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] VisualStudio 2013 with Qt5.5 addin debugging woes
QtWS25 Last Chance

[Solved] VisualStudio 2013 with Qt5.5 addin debugging woes

Scheduled Pinned Locked Moved General and Desktop
debuggingvisual studio 2qt addin
5 Posts 2 Posters 1.7k Views
  • 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.
  • P Offline
    P Offline
    panch
    wrote on 15 Sept 2015, 07:30 last edited by panch
    #1

    Hi,

    I installed the Qt5.5 environment along with the addin for MSVC 2013. In general it works really great, but one thing is driving me mad; debugging!
    Most of the time, variables in the debugging view are invalid, and also the program pointer jumps around when debugging. The only way I can get reasonable data out, is by using qDebug() - automatic or local variables make no sense, which is a major annoyance.

    I have not tried to make a very simple qt application, to verify if it is a general problem or if it has anything to do with the settings of my current project.

    Any tips anyone?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 15 Sept 2015, 08:26 last edited by Chris Kawa
      #2

      the program pointer jumps around when debugging

      It doesn't sound like a Qt problem. This happens when you're debugging an optimized build.
      Are you debugging a Release or Debug build? If it's Debug then check the project setting under Configuration Properties -> C/C++ -> Optimization and see if Optimization option is set to anything other than Disabled (which is what it should be for debug build).

      1 Reply Last reply
      0
      • P Offline
        P Offline
        panch
        wrote on 15 Sept 2015, 10:51 last edited by
        #3

        Thanks, I think that solved my problem. The wrong optimization setting must have come while setting up the project. Disabling the optimization makes the debugging work again. Thanks!

        As as side question, you may be able to tell me why edit-and-continue doesn't work for my project? When I edit a line, it just says the executable does not anymore match the code.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on 15 Sept 2015, 10:58 last edited by
          #4

          Make sure the right options are set as described here and that you're not in one of the unsupported scenarios. Also note that edit and continue is not supported in VS2013 for native projects when compiling for x64 (that support is back in VS2015).

          1 Reply Last reply
          0
          • P Offline
            P Offline
            panch
            wrote on 15 Sept 2015, 12:46 last edited by
            #5

            Ahh ok. Thanks alot. That clears it up for me!

            1 Reply Last reply
            0

            4/5

            15 Sept 2015, 10:58

            • Login

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