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.