Description of problem: Running "import gdb" in Python returns "ModuleNotFoundError: No module named 'gdb'" QtCreator depends on Python to display its class values when the checkbox "Use debugging helpers" is checked. It fails to do it right now regardless of QtCreator source (F37, F38 or Qt's own installer). Version-Release number of selected component (if applicable): 12.1-6 How reproducible: Always. Steps to Reproduce: 1. Type "python" in a terminal 2. Type "import gdb" 3. Actual results: ModuleNotFoundError: No module named 'gdb' Expected results: No error. Additional info: Qt's code for debugging helpers to work correctly presumably relies on the following code import sys sys.path.insert(1, '/usr/share/qtcreator/debugger') from gdbbridge import *
It seems that debugging helpers don't work with lldb debugger as well. Readdressing as qt-creator bug then. Sorry.
Created attachment 1928472 [details] Minimal test case Steps to reproduce: 1) build attached project in QtCreator 2) make sure that you have enabled Edit->Preferences->DebuggerLocals & Expressions->Use Debugging Helpers 3) make sure that your debugger is gdb under Edit->Preferences->Kits->Kits->Manual->Desktop (default)->Debugger->System GDB at /usr/bin/gdb 4) open main.cpp in QtCreator 5) set a breakpoint at 7th line ("return 0;") 6) run debugger by pressing F5 key 7) make sure that you see locals by enabling View->Views->Locals 8) look at myString row in locals view and see what you have under Value column. If it's not "abc" then Debugging Helpers don't work
Created attachment 1928473 [details] Debugger log Debugger log from QtCreator from View->Views->Debugger log. It seems that there is an error >&"importPlainDumpers on\n" >&"Python Exception <class 'AttributeError'>: 'function' object has no attribute 'subprinters'\n" >&"Error occurred in Python: 'function' object has no attribute 'subprinters'\n" >167^error,msg="Error occurred in Python: 'function' object has no attribute 'subprinters'" It seems that at https://sourceware.org/gdb/current/onlinedocs/gdb/Pretty-Printing-API.html#Pretty-Printing-API there is no such thing as subprinters. Is that valid though?
Looks like https://bugreports.qt.io/projects/QTCREATORBUG/issues/QTCREATORBUG-28505
Pursuing further upstream, please follow [1] and provide any additional information you may find there. [1] https://bugreports.qt.io/projects/QTCREATORBUG/issues/QTCREATORBUG-28505
(In reply to Sandro Mani from comment #4) > Looks like > https://bugreports.qt.io/projects/QTCREATORBUG/issues/QTCREATORBUG-28505 Thank you. That's what I needed. Should I close the bug as RESOLVED UPSTREAM then please let me know.
@manisandro Could you please backport the fix from bug QTCREATORBUG-28505? Then I think this bug could be closed right away.
Fixed in qt-creator-9.0.1-2.fc38.
Ah, I'll also apply it to F37
FEDORA-2023-81d5b1890f has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-81d5b1890f
FEDORA-2023-81d5b1890f has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-81d5b1890f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-81d5b1890f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-6e28212539 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-6e28212539` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-6e28212539 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-6e28212539 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.