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. How disable Native Debugging
Forum Updated to NodeBB v4.3 + New Features

How disable Native Debugging

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 1.8k Views 2 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.
  • L Offline
    L Offline
    luigi
    wrote on last edited by
    #1

    Hi, i'm new with QtCreator, i'm trying to do a debugging of my code, but the debug is in ASM, i change in Tools->Build & Run->Kit , the Debug to GDB but ever the same, this is my screenshot:

    alt text

    What can i do?

    This is my easy Code:

    #include "notepad.h"
    
    Notepad::Notepad()
    {
        textEdit = new QTextEdit;
        quitButton = new QPushButton(tr("Quit"));
    
        connect(quitButton, SIGNAL (clicked()), this, SLOT (quit()));
        QVBoxLayout *layout = new QVBoxLayout;
    
        layout->addWidget(textEdit);
        layout->addWidget(quitButton);
    
        setLayout(layout);
    
        setWindowTitle(tr("Notepad"));
    
    
    }
    
    int main(int argv, char  **args){
        Notepad *m = new Notepad();
    }
    
    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by Chris Kawa
      #2

      Hi,
      Open the Debug menu and make sure the "Operate by Instruction" option is not checked. Note though, that if you happen to break in code you don't have the source for, you will still see the assembly (because that's all you've got). Take a look at the stack window. Identify your code there and double-click it to jump up the stack.

      1 Reply Last reply
      3
      • L Offline
        L Offline
        luigi
        wrote on last edited by
        #3

        Sorry, but i don't find this...

        This is my Debuggers Menu:
        alt text

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jjcasmar
          wrote on last edited by
          #4

          You are in Release mode. Go to Debug mode (left bar, at the bottom there is a selector to select which kind of build and which target to run)

          1 Reply Last reply
          1
          • L Offline
            L Offline
            luigi
            wrote on last edited by
            #5

            I set Debug Mode, but ever this

            1 Reply Last reply
            0
            • Chris KawaC Offline
              Chris KawaC Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on last edited by
              #6

              I said "Debug menu", not Debugger tab in the Options dialog. The one in the main window, on the top menu bar, next to "File", "Edit", "Build" and so on.

              1 Reply Last reply
              3
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                1 Reply Last reply
                2
                • L Offline
                  L Offline
                  luigi
                  wrote on last edited by
                  #8

                  Operate by Instruction is not checked...

                  When i do debug i have this errors:
                  alt text

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    Jjcasmar
                    wrote on last edited by
                    #9

                    Im not sure about *.pro configuration files, I usually use CMake project. With CMake I have those errors when I try to debug a build without debug symbols. Maybe you have to check the *pro file to be sure that in Debug mode, its building the debug symbols.

                    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