Cant stop qt-creator from showing assembly code.
-
Greetings, I've been trying to stop qt creator from showing assembly code for some time but Im running out of options. Here is an info about qt-creator.
Here is an example code to trigger this condition.#include <QCoreApplication> # include <QtNetwork/QTcpSocket> # include <QtNetwork/QHostAddress> int main(int argc, char *argv[]) { QTcpSocket MainSocket{}; MainSocket.bind(32324); }
Breakpoint is set on first line of main function.
Im building using MinGW 11.2.0 64 bit and Qt 6.5.3 and gdb 11.2.0 for MinGW 11.2.0 64-bit
From similar topics I've seen that its normal behaivor, when entering the code, source for which are not presented. But I'm not pressing button to step into, Im pressing step over, if its not a call of my function. Currently - the only way to debug line by line - is to set breakpoint on every line, which I think is not a supposed way to use a debuger. I just want to be able to step over C++ code.
I've tried to check-uncheck "Use debbuging helper" in Options->Debugger as suggested in this topic
And I dont have any other IDE's for qt and there is no #line directives, as suggester here
Here is a debug logs and Im noticing some strange directories I've never installed QT to, like C/Users/qt/work and F:/Qt/Tools/QtCreator/bin/usr/src/debug/qt5base/src/corelib which look line combination of linux and windows paths.
Also, for some reason, they are pre-defined in source path, in debugger.
I didnt install qt in those folders, and even If I remove all of those paths and press "Add Qt sources" - they are appearing again.
In application output Im getting those errorsCould not load shared library symbols for 36 libraries, e.g. C:\Windows\SYSTEM32\ntdll.dll. Use the "info sharedlibrary" command to see the complete listing. Do you need "set solib-search-path" or "set sysroot"?Could not load shared library symbols for C:\Windows\System32\imm32.dll. Do you need "set solib-search-path" or "set sysroot"?Could not load shared library symbols for C:\Windows\System32\bcryptprimitives.dll. Do you need "set solib-search-path" or "set sysroot"?Could not load shared library symbols for C:\Windows\System32\nsi.dll. Do you need "set solib-search-path" or "set sysroot"?
And I should mention that I've triend clicking "switch to instruction-wise operation mode" - it only works if you are in C++ code, if you are in assembly - this button does nothing.
And I'm using debug build mode, and In Cmake I've setset(CMAKE_CXX_FLAGS "-g")
and tried
set(CMAKE_CXX_FLAGS_DEBUG "-g")
without success.
If you've faced issue like this or can make a guess what may cause it - please let me know.
If there is anything else I could provide - again, please let me know. -
Okay, I reinstall Qt fully, thankfully I managed to setup android back again without any pain. Surprisingly, on windows all tools take less space, than on macOS, only 40ish gigs. Problem now fixed, although the original reason is unknown.
-
I don't know if bumping works here, but issue still persist, guess I will re-install 60+gb of QT.
-
@VoiceShifter said in Cant stop qt-creator from showing assembly code.:
60+gb of QT.
60GB?! What did you install? You don't have to install everything, only install what you need.
Regarding the issue: you mean that if debugger stops in your code you only see assembly?
Are you debugging a debug build? -
@jsulm Thank you for reply.
I've recently installed qt on another machine, and with all components I need - it takes about 60gb of space. It includes android sdk's and web-assebly, so yeah, around 60gbs.Regarding the issue: No, its stops at C++ code, but when I try to step over it - it instantly show assembly, which results it need to place breakpoint on every line, to debug line by line. In provided example - when I place breakpoint on first line of main function and start debugger - its stop's there, but then, if I press f10 or f11(step over or step into) - it gets into assembly, which for me to exit it - requires to place breakpoint on another line of C++ code and press F5(continue) again.
As I mentioned in my primary post -
@VoiceShifter said in Cant stop qt-creator from showing assembly code.:And I'm using debug build mode
Since I installed QT on another machine - I know, that this behaivor is not intended, and Im supposed to be able to traverse C++ code without problems.
-
@VoiceShifter: Before you install everything again, have a look in the Debugger Log: View > Views > Debugger Log.
It might also be worth to try upgrading Creator to 15.x first (and 16.0 is just around the corner) to see if that brings any advantage.
Regards
-
@aha_1980
Thank you for reply. Are you by any chance talking about these logs?@VoiceShifter said in Cant stop qt-creator from showing assembly code.:
Here is a debug logs and Im noticing some strange directories I've never installed QT to
There is a link to pastebin in original post. As I stated - there is a bunch of strange paths, but, as I now know - those are original path qt was compiled with and they doesnt matter much, since target path present in source paths mapping is correct.
-
Okay, I reinstall Qt fully, thankfully I managed to setup android back again without any pain. Surprisingly, on windows all tools take less space, than on macOS, only 40ish gigs. Problem now fixed, although the original reason is unknown.
-