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. Cannot debug shared library
Forum Updated to NodeBB v4.3 + New Features

Cannot debug shared library

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 5 Posters 1.0k 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.
  • K kncy9876

    @jsulm said in Cannot debug shared library:

    @kncy9876 said in Cannot debug shared library:

    qmake command

    This is to build your app, right?
    How did you build the lib?

    No this is to build the dll. Our app is built using a different compiler/ide totally. Our exe then loads this dll at runtime. The dll is the ui of our application which triggers callbacks to the exe when user clicks.
    So to debug our ui I try and attach to the running application but get the message about the dll not being a debug build.

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #7

    @kncy9876 said in Cannot debug shared library:

    So to debug our ui I try and attach to the running application but get the message about the dll not being a debug build.

    Because the dll is NOT build in debug mode. Build it in debug mode if you want to debug it...

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

    K 1 Reply Last reply
    0
    • jsulmJ jsulm

      @kncy9876 said in Cannot debug shared library:

      So to debug our ui I try and attach to the running application but get the message about the dll not being a debug build.

      Because the dll is NOT build in debug mode. Build it in debug mode if you want to debug it...

      K Offline
      K Offline
      kncy9876
      wrote on last edited by
      #8

      @jsulm said in Cannot debug shared library:

      @kncy9876 said in Cannot debug shared library:

      So to debug our ui I try and attach to the running application but get the message about the dll not being a debug build.

      Because the dll is NOT build in debug mode. Build it in debug mode if you want to debug it...

      I'm sorry if I didnt make it clear, but the dll is built in debug mode. It has the pdb file alongside it. It 100% is built with debug. I can see the difference between release/debug builds.
      By the way I am not debugging the application, I am debugging the dll. So using QT to attach to my exe

      Christian EhrlicherC 1 Reply Last reply
      0
      • K kncy9876

        @jsulm said in Cannot debug shared library:

        @kncy9876 said in Cannot debug shared library:

        So to debug our ui I try and attach to the running application but get the message about the dll not being a debug build.

        Because the dll is NOT build in debug mode. Build it in debug mode if you want to debug it...

        I'm sorry if I didnt make it clear, but the dll is built in debug mode. It has the pdb file alongside it. It 100% is built with debug. I can see the difference between release/debug builds.
        By the way I am not debugging the application, I am debugging the dll. So using QT to attach to my exe

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by Christian Ehrlicher
        #9

        @kncy9876 said in Cannot debug shared library:

        QT to attach to my

        Qt is a library... It can not attach to anything.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        K 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @kncy9876 said in Cannot debug shared library:

          QT to attach to my

          Qt is a library... It can not attach to anything.

          K Offline
          K Offline
          kncy9876
          wrote on last edited by
          #10

          @Christian-Ehrlicher said in Cannot debug shared library:

          @kncy9876 said in Cannot debug shared library:

          QT to attach to my

          Qt is a library... It can not attach to anything.

          Like this
          2022a7bd-372a-4338-8a54-a85b6e0fd5d2-image.png

          jsulmJ 1 Reply Last reply
          0
          • K kncy9876

            @Christian-Ehrlicher said in Cannot debug shared library:

            @kncy9876 said in Cannot debug shared library:

            QT to attach to my

            Qt is a library... It can not attach to anything.

            Like this
            2022a7bd-372a-4338-8a54-a85b6e0fd5d2-image.png

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #11

            @kncy9876 You're showing QtCreator, Qt is a C++ framework

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

            K 1 Reply Last reply
            0
            • jsulmJ jsulm

              @kncy9876 You're showing QtCreator, Qt is a C++ framework

              K Offline
              K Offline
              kncy9876
              wrote on last edited by
              #12

              @jsulm said in Cannot debug shared library:

              @kncy9876 You're showing QtCreator, Qt is a C++ framework

              Apologies I should have mentioned QT Creator was the tool I was using to debug

              K 1 Reply Last reply
              0
              • K kncy9876

                @jsulm said in Cannot debug shared library:

                @kncy9876 You're showing QtCreator, Qt is a C++ framework

                Apologies I should have mentioned QT Creator was the tool I was using to debug

                K Offline
                K Offline
                kncy9876
                wrote on last edited by
                #13

                @jsulm This seems like a similar issue??? https://forum.qt.io/post/298329

                Serhan KarsS 1 Reply Last reply
                0
                • K kncy9876

                  @jsulm This seems like a similar issue??? https://forum.qt.io/post/298329

                  Serhan KarsS Offline
                  Serhan KarsS Offline
                  Serhan Kars
                  wrote on last edited by
                  #14

                  @kncy9876 Are you sure your application (not the library) is built in debug mode?

                  K 1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SimonSchroeder
                    wrote on last edited by
                    #15

                    You are attaching to the exe and not the dll. If that is not a debug build it is quite plausible to see the warning message. It doesn't mean that it won't work for the dll. (Though I have not experience debugging a dll and I'm not sure if it should work.)

                    1 Reply Last reply
                    1
                    • Serhan KarsS Serhan Kars

                      @kncy9876 Are you sure your application (not the library) is built in debug mode?

                      K Offline
                      K Offline
                      kncy9876
                      wrote on last edited by
                      #16
                      This post is deleted!
                      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