Unsolved 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 failedHere i'm posting my debug log last lines
&"python sys.path.append('/home/jigar/ti-processor-sdk-linux-am335x-evm-04.00.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/data-directory/python')\n"
12^done&"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/gdbbridge.py", line 41, in <module>\n"
&" from dumper import *\n"
&" File "/home/jigar/Qt5.7.0/Tools/QtCreator/share/qtcreator/debugger/dumper.py", 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."
dNOTE: ENGINE SETUP FAILED
dState changed from EngineSetupRequested(1) to EngineSetupFailed(2) [master]
dHANDLE RUNCONTROL FINISHEDThank you
-
Looks like Python import error. Try installing the json module via pip, perhaps?
And definitely update your Qt Creator to newest version.