Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unable to debug in QtCreator on Debian 12.
Forum Updated to NodeBB v4.3 + New Features

Unable to debug in QtCreator on Debian 12.

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
9 Posts 4 Posters 816 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.
  • M Offline
    M Offline
    mrdebug
    wrote on 28 Aug 2023, 14:55 last edited by
    #1

    Hi. When I try to run in debug mode an application, the application does not appear.
    In the console I read:

    SOFT ASSERT [16:51:48.244]: "rp.attachPID.isValid() && (rp.startMode == AttachToRemoteProcess || rp.startMode == AttachToLocalProcess || rp.startMode == AttachToRemoteServer)" in /home/qt/work/build/qt-creator/src/plugins/debugger/lldb/lldbengine.cpp:289
    LLDB STDERR UNEXPECTED:  "Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'lldb.embedded_interpreter'\n"
    LLDB STDERR UNEXPECTED:  "Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nNameError: name 'run_one_line' is not defined"
    LLDB STDERR UNEXPECTED:  "\n"
    LLDB STDERR UNEXPECTED:  "Traceback (most recent call last):\n"
    LLDB STDERR UNEXPECTED:  "  File \"<string>\", line 1, in <module>\n"
    LLDB STDERR UNEXPECTED:  "NameError: name 'run_one_line' is not defined"
    LLDB STDERR UNEXPECTED:  "\n"
    LLDB STDERR UNEXPECTED:  "Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n"
    LLDB STDERR UNEXPECTED:  "NameError: name 'run_one_line' is not defined"
    LLDB STDERR UNEXPECTED:  "\n"
    LLDB STDERR UNEXPECTED:  "Traceback (most recent call last):\n"
    LLDB STDERR UNEXPECTED:  "  File \"<string>\", line 1, in <module>\nNameError: "
    LLDB STDERR UNEXPECTED:  "name 'run_one_line' is not defined"
    LLDB STDERR UNEXPECTED:  "\n"
    LLDB STDERR UNEXPECTED:  "Traceback (most recent call last):\n"
    LLDB STDERR UNEXPECTED:  "  File \"<string>\", line 1, in <module>\nNameError: "
    LLDB STDERR UNEXPECTED:  "name 'run_one_line' is not defined"
    LLDB STDERR UNEXPECTED:  "\n"
    LLDB STDERR UNEXPECTED:  "Traceback (most recent call last):\n"
    LLDB STDERR UNEXPECTED:  "  File \"<string>\", line 1, in <module>\nNameError"
    LLDB STDERR UNEXPECTED:  ": name 'run_one_line' is not defined"
    LLDB STDERR UNEXPECTED:  "\n"
    LLDB STDERR UNEXPECTED:  "error: python failed attempting to evaluate 'sys.path.insert(1, '/opt/Qt/Tools/QtCreator/share/qtcreator/debugger')'\n"
    LLDB STDERR UNEXPECTED:  "Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nNameError: name 'run_one_line' is not defined"
    LLDB STDERR UNEXPECTED:  "\n"
    LLDB STDERR UNEXPECTED:  "error: python failed attempting to evaluate 'from lldbbridge import *'\n"
    LLDB STDERR UNEXPECTED:  "Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nNameError: name 'run_one_line' is not defined"
    LLDB STDERR UNEXPECTED:  "\n"
    LLDB STDERR UNEXPECTED:  "error: python failed attempting to evaluate 'theDumper.loadDumpers({\"token\":1})'\n"
    LLDB STDERR UNEXPECTED:  "Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nNameError: "
    LLDB STDERR UNEXPECTED:  "name 'run_one_line' is not defined"
    LLDB STDERR UNEXPECTED:  "\n"
    LLDB STDERR UNEXPECTED:  "error: "
    LLDB STDERR UNEXPECTED:  "python failed attempting to evaluate 'theDumper.setupInferior({\"attachpid\":0,\"breakonmain\":0,\"environment\":[\"434f4c4f52464742473d31353b30\"
    

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    1 Reply Last reply
    0
    • C Christian Ehrlicher moved this topic from General and Desktop on 28 Aug 2023, 16:40
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 Aug 2023, 17:14 last edited by
      #2

      Hi,

      Based on the error message, do you have clang installed ?

      Also, how did you install Qt Creator ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply 29 Aug 2023, 06:24
      0
      • S SGaist
        28 Aug 2023, 17:14

        Hi,

        Based on the error message, do you have clang installed ?

        Also, how did you install Qt Creator ?

        M Offline
        M Offline
        mrdebug
        wrote on 29 Aug 2023, 06:24 last edited by
        #3

        @SGaist No, I hadn't but after having installed it still does not work.
        lldb works as command line but not in QtCreator.

        Need programmers to hire?
        www.labcsp.com
        www.denisgottardello.it
        GMT+1
        Skype: mrdebug

        J S 2 Replies Last reply 29 Aug 2023, 16:38
        0
        • M mrdebug
          29 Aug 2023, 06:24

          @SGaist No, I hadn't but after having installed it still does not work.
          lldb works as command line but not in QtCreator.

          J Offline
          J Offline
          JoeCFD
          wrote on 29 Aug 2023, 16:38 last edited by JoeCFD
          #4

          @mrdebug then compare the differences between the build commands in qtcreator and from command line. Also check the settings of ENV variables in qtcreator.

          run the Makefile created from qtcreator from command line.

          1 Reply Last reply
          0
          • M mrdebug
            29 Aug 2023, 06:24

            @SGaist No, I hadn't but after having installed it still does not work.
            lldb works as command line but not in QtCreator.

            S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 29 Aug 2023, 18:25 last edited by
            #5

            @mrdebug are you running your own build of Qt Creator ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            M 1 Reply Last reply 30 Aug 2023, 05:22
            0
            • S SGaist
              29 Aug 2023, 18:25

              @mrdebug are you running your own build of Qt Creator ?

              M Offline
              M Offline
              mrdebug
              wrote on 30 Aug 2023, 05:22 last edited by
              #6

              @SGaist No, I'm using the original qt creator, latest version.

              Need programmers to hire?
              www.labcsp.com
              www.denisgottardello.it
              GMT+1
              Skype: mrdebug

              C 1 Reply Last reply 30 Aug 2023, 16:12
              0
              • M mrdebug
                30 Aug 2023, 05:22

                @SGaist No, I'm using the original qt creator, latest version.

                C Offline
                C Offline
                cristian-adam
                wrote on 30 Aug 2023, 16:12 last edited by
                #7

                I would say that lldb is not build with python support.

                See https://bugzilla.redhat.com/show_bug.cgi?id=1417371 for something similar. The solution there I think was to install python-lldb.

                It looks Debian 12 also has such a package. Try to install it and maybe it just works.

                M 1 Reply Last reply 30 Aug 2023, 18:57
                0
                • C cristian-adam
                  30 Aug 2023, 16:12

                  I would say that lldb is not build with python support.

                  See https://bugzilla.redhat.com/show_bug.cgi?id=1417371 for something similar. The solution there I think was to install python-lldb.

                  It looks Debian 12 also has such a package. Try to install it and maybe it just works.

                  M Offline
                  M Offline
                  mrdebug
                  wrote on 30 Aug 2023, 18:57 last edited by
                  #8

                  @cristian-adam Thank you for the suggestion. I already have the package python3-lldb-14 installed. I added the package python3-lldb but still does not work.

                  Need programmers to hire?
                  www.labcsp.com
                  www.denisgottardello.it
                  GMT+1
                  Skype: mrdebug

                  C 1 Reply Last reply 30 Aug 2023, 19:00
                  0
                  • M mrdebug
                    30 Aug 2023, 18:57

                    @cristian-adam Thank you for the suggestion. I already have the package python3-lldb-14 installed. I added the package python3-lldb but still does not work.

                    C Offline
                    C Offline
                    cristian-adam
                    wrote on 30 Aug 2023, 19:00 last edited by
                    #9

                    Looks like you'll have to do some symlinking to get things up and running. See https://github.com/llvm/llvm-project/issues/55575

                    1 Reply Last reply
                    0

                    1/9

                    28 Aug 2023, 14:55

                    • Login

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