Can‘t launch debugger on my arm linux device



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


  • Qt Champions 2018

    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



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


  • Qt Champions 2018

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.