Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Can‘t launch debugger on my arm linux device
QtWS25 Last Chance

Can‘t launch debugger on my arm linux device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 853 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.
  • G Offline
    G Offline
    GuYan
    wrote on last edited by
    #1

    I want to debug my application on my pc. The gdbserver can work but when I use the debug function in Qtcreator, it says that launching debugger failed. here is some errors in the debug log:

    &" import shutil as _shutil\n"
    &"ImportError: No module named 'shutil'\n"
    &"Error while executing Python code.\n"
    297^error,msg="Error while executing Python code."

    &"python theDumper.loadDumpers({"token":298})\n"
    &"Traceback (most recent call last):\n"
    &" File "<string>", line 1, in <module>\n"
    &"NameError: name 'theDumper' is not defined\n"
    &"Error while executing Python code.\n"
    298^error,msg="Error while executing Python code."
    dNOTE: ENGINE SETUP FAILED
    dState changed from EngineSetupRequested(1) to EngineSetupFailed(2)
    <Debugging has failed.
    dState changed from EngineSetupFailed(2) to DebuggerFinished(17)

    dQUIT DEBUGGER REQUESTED IN STATE 17

    299^done
    dCOOKIE FOR TOKEN 299 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND?

    d
    dNON-CRITICAL TIMEOUT
    dCOMMANDS STILL IN PROGRESS:

    It seems that there's something wrong with python script...

    1 Reply Last reply
    0
    • KazuoAsanoK Offline
      KazuoAsanoK Offline
      KazuoAsano
      Qt Champions 2018
      wrote on last edited by KazuoAsano
      #2

      The below forum posting might help you.

      Qt Forum : Debugger failed.

      I think that you might need to reconsider Python environment.

      If you need an urgent response, it will be improved using QtCreator v3.01 previous.
      The gdb does not require Python in QtCreator v3.01 previous,
      However, I can not recommend it, because Qt Creator v3.01 is a very old.

      Topic : Qt Creator v3.10 later removed support for GDB without Python
      Qt Creator version 3.1 release note

      46: Debugging
      47: * Removed support for GDB without Python

      G 1 Reply Last reply
      1
      • KazuoAsanoK KazuoAsano

        The below forum posting might help you.

        Qt Forum : Debugger failed.

        I think that you might need to reconsider Python environment.

        If you need an urgent response, it will be improved using QtCreator v3.01 previous.
        The gdb does not require Python in QtCreator v3.01 previous,
        However, I can not recommend it, because Qt Creator v3.01 is a very old.

        Topic : Qt Creator v3.10 later removed support for GDB without Python
        Qt Creator version 3.1 release note

        46: Debugging
        47: * Removed support for GDB without Python

        G Offline
        G Offline
        GuYan
        wrote on last edited by
        #3

        @KazuoAsano
        Thanks for your reply. But it seems that his problem is his python even can't work while my python on my board works well. I will try to reconsider the environment again, hope it will solve my problem.

        aha_1980A 1 Reply Last reply
        0
        • G GuYan

          @KazuoAsano
          Thanks for your reply. But it seems that his problem is his python even can't work while my python on my board works well. I will try to reconsider the environment again, hope it will solve my problem.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @GuYan

          QtCreator requires a GDB debugger with Python support enabled.

          As you are cross- and remote debugging, you need:

          • gdbserver running on your ARM target
          • A cross gdb for ARM target archicture with Python support running on your PC

          Usually, these gdb's are called arm-angstrom-linux-gnueabi-gdb or similar.

          Note that you can also debug from within this gdb, or use the DDD debugger GUI if you can't get it working in QtCreator.

          Qt has to stay free or it will die.

          1 Reply Last reply
          1

          • Login

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