Unable to debug in QtCreator on Debian 12.
-
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\"
-
C Christian Ehrlicher moved this topic from General and Desktop on
-
Hi,
Based on the error message, do you have clang installed ?
Also, how did you install Qt Creator ?
-
Hi,
Based on the error message, do you have clang installed ?
Also, how did you install Qt Creator ?
-
@SGaist No, I hadn't but after having installed it still does not work.
lldb works as command line but not in QtCreator. -
@SGaist No, I hadn't but after having installed it still does not work.
lldb works as command line but not in QtCreator. -
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.
-
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.
@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-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.
Looks like you'll have to do some symlinking to get things up and running. See https://github.com/llvm/llvm-project/issues/55575