The debugger is not stopping at breakpoints in Qt Creator 6 with CMake. It just runs the project as usual.
-
Hello! I have a problem. I'm writing a program in Qt Creator 6 using CMake. However, there is an issue with debugging: when I set a breakpoint, the debugger just runs the project as usual without stopping at the breakpoint.
-
@Ivan_Chokyrlan said in The debugger is not stopping at breakpoints in Qt Creator 6 with CMake. It just runs the project as usual.:
Qt Creator 6
QtCreator 6? Are you sure you mean the QtCreator version and not Qt version?
On which OS and what debugger is used (GDB, CDB,...)? -
Qt Version: Installed Qt 6.8.2 (MinGW 64-bit).
Operating System: Windows.
Debugger: Using GDB 13.1.0 64-bit (D:\Qt\Tools\mingw1310_64\bin\gdb.exe).
I can provide remote access via AnyDesk to help resolve the issue. -
@Ivan_Chokyrlan Do you have any warnings in your Kit in QtCreator?
-
@Ivan_Chokyrlan
You have told us your Qt version. This is nothing to do with the version of Qt Creator you are running and having the problem in. You should let us know what that is. You can find it inside Creator, I think via the Help menu, you are looking for something like About Qt Creator.... The number will be somewhere around 11 to 15, give or take, not 6.I don't know whether it would help, but you might run the
gdb.exe
via the Command Prompt, place breakpoints and check whether that works.Nobody here is going to look at your system or use AnyDesk. Please understand this is a forum for users of Qt just like yourself, this is not The Qt Company itself.
-
@Ivan_Chokyrlan I don't know what that means, nor how that affects you telling us what version of Creator you are using.
-
-
@Ivan_Chokyrlan Which of these debuggers is used in your Kit? You should use the one provided by Qt installer.
-
I can't understand which debugger I am using.
-
@Ivan_Chokyrlan Why don't you simply go to your Kit and check?
-
Do you mean this? Here it is grey, I can`t understand that I need to choose the correct one.
-
@Ivan_Chokyrlan You're using the correct compiler.
I just realized that you set the break point in an empty line (line 18). You have to set the break point in a code line! -
Nothing helped. Here are the photo and video
-
Hi @Ivan_Chokyrlan,
- Can you share your Debugger Log? You can find it in View > Views > Debugger Log (Switch to Debug mode first)
- I strongly advice to use path names only containing ASCII characters. Please try something like
D:\Users\ivanc\Test
as project directory.
Regards