Important: Please read the Qt Code of Conduct -

Unable to debug Qt application

  • Hello

    I'm using Qt for cross compiling am335x processor with linux kernel 4.9.28 on ubuntu 16.04.
    I'm unable to debug my linux application using Qt creator 4.0.2 based on Qt 5.7.0.
    while trying to debug it shows this as output
    Debugging starts
    Listening on port 10000
    Debugging has failed

    Here i'm posting my debug log last lines

    &"python sys.path.append('/home/jigar/ti-processor-sdk-linux-am335x-evm-')\n"

    &"python from gdbbridge import *\n"
    &"Traceback (most recent call last):\n"
    &" File "<string>", line 1, in <module>\n"
    &" File "/home/jigar/Qt5.7.0/Tools/QtCreator/share/qtcreator/debugger/", line 41, in <module>\n"
    &" from dumper import *\n"
    &" File "/home/jigar/Qt5.7.0/Tools/QtCreator/share/qtcreator/debugger/", line 32, in <module>\n"
    &" import json\n"
    &"ImportError: No module named 'json'\n"
    &"Error while executing Python code.\n"
    13^error,msg="Error while executing Python code."

    &"python theDumper.loadDumpers({"token":14})\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"
    14^error,msg="Error while executing Python code."
    dState changed from EngineSetupRequested(1) to EngineSetupFailed(2) [master]


    Thank you

  • Moderators

    Looks like Python import error. Try installing the json module via pip, perhaps?

    And definitely update your Qt Creator to newest version.

Log in to reply