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. Qt 5.5 MinGW Strange Debugger Issue (Redirect to Disassembler View)
Forum Updated to NodeBB v4.3 + New Features

Qt 5.5 MinGW Strange Debugger Issue (Redirect to Disassembler View)

Scheduled Pinned Locked Moved Unsolved General and Desktop
debugmingw
4 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.
  • B Offline
    B Offline
    bigapple
    wrote on last edited by bigapple
    #1

    When I was debugging my executable (which will load a dll built from the subproject), I set a breakpoint in the code, but whenever I do a single step over, the debugger direct the control flow to the disassembler viewer. And if I continue hit F10 (Step Over), some times the view will come back and hit the next line of source code, Sometimes it won't come back and the console says the executable This application has requested the runtime to terminate it in an unusual way. (I'm building a pure console app now).

    I also noticed that, when the disassembler view showed up, the control flow always switches to Thread #2, but this thread seems doing nothing and useless.

    Sometimes the control flow comes back to the source code, but the little yellow arrow which tells you the current line to be executed disappeared. Then if I hit F10 under in this situation, a prompt says something like SIGILL.

    I can guarantee it's not the source code's problem. Because I can run through these lines of code without setting breakpoint and I checked the results, they're all desired. (I have to print to debug eventually). This is so annoying when debugging.

    Could anybody help? I would appreciated it. (I took several screenshots and couldn't upload it here. Not sure how to do it)

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Did you build your application in debug mode?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      0
      • jsulmJ jsulm

        Did you build your application in debug mode?

        B Offline
        B Offline
        bigapple
        wrote on last edited by bigapple
        #3

        @jsulm Yes, I'm pretty sure I did. Although this seems like the debugger can't find the correct symbols. I also tried clean the whole project and do a rebuild.

        I have another guess which is something wrong with the linker. It can't do the work properly in run time when it tries to link the pieces of code and symbols in dll. But this whole issue is just annoying and confusing. So far I haven't been able to figure out more.

        1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you activate any kind of compiler optimization?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          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