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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on 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
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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

      mrdebugM 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

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

        Also, how did you install Qt Creator ?

        mrdebugM Offline
        mrdebugM Offline
        mrdebug
        wrote on 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

        JoeCFDJ SGaistS 2 Replies Last reply
        0
        • mrdebugM mrdebug

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

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on 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
          • mrdebugM mrdebug

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

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on 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

            mrdebugM 1 Reply Last reply
            0
            • SGaistS SGaist

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

              mrdebugM Offline
              mrdebugM Offline
              mrdebug
              wrote on 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

              cristian-adamC 1 Reply Last reply
              0
              • mrdebugM mrdebug

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

                cristian-adamC Offline
                cristian-adamC Offline
                cristian-adam
                wrote on 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.

                mrdebugM 1 Reply Last reply
                0
                • cristian-adamC cristian-adam

                  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.

                  mrdebugM Offline
                  mrdebugM Offline
                  mrdebug
                  wrote on 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

                  cristian-adamC 1 Reply Last reply
                  0
                  • mrdebugM mrdebug

                    @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.

                    cristian-adamC Offline
                    cristian-adamC Offline
                    cristian-adam
                    wrote on 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

                    • Login

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