Qt debugging won't stop at breakpoint

I just installed qt creator sdk and windows debug files. When I try to debug the debugger, a warning appears:

The preferred debugger mechanism for debugging binary files such as "x86-windows-msys-pe-23bit" is not available. The Cdb mechanism of the debugger engine will be used as a backup Details: for binary files in the format "x86-windows-msys-pe-32bit" there is no binary gdb file, Then the construction of the program will begin.

When I set breakpoints in a program, the debugger does not stop at breakpoints. I tried a lot of things to let the debugger work correctly, but so far nothing has helped. If anyone has a suggestion, please let me know. I think this may be due to the compiler I am using, something like mingw, but I don’t know how to install another compiler or something like that

+4
source share
2 answers

Since you do not know msys, most likely you do not need the msys compiler, try the mingw compiler itself from here . be sure to install gcc and gdb.

Since you did not mention, I assume this is Windows as a side note, if gdb gave you a headache on Windows, please use the mingw version bundled with Code :: Blocks , it is probably older (see the one that comes with mingw).

0
source

You need to get either gdb / cdb installed with Qt to be able to debug your code. Try editing the options in Tools-> Options in Qt Creator and specifying the correct gdb paths. This should solve this problem. There are other options for setting gdb options in the settings dialog.

0
source

Source: https://habr.com/ru/post/1397912/


All Articles