User forums > Using Code::Blocks
Debugger fails (Win7 64, mingw 8.1)
nji:
I recently updated to CB 20.0.3 and have problems debugging:
When I build a simple console application and let it run
everything is OK - Hello world.
But when starting the debugger nothing happens.
A breakpoint is never reached.
If I stop the debugger, it doesn't react.
When closing CB the message appears:
"Project close while debugging".
After confirming, the task manager shows
gdb.exe, gdborig.exe and conhost.exe are still running.
Have to kill them.
What's going wrong here?
nji:
Is there a connection to this?
http://forums.codeblocks.org/index.php/topic,23910.msg163121.html#msg163121
Although I don't understand what is meant there.
Where is the wrong version?
It says 8.1
???
oBFusCATed:
As far as I know the mingw64 release we're using has a broken debugger. You'll have to find something which works. I cannot help much, because I don't use windows...
Pecan:
--- Quote from: nji on July 04, 2020, 12:10:43 pm ---I recently updated to CB 20.0.3 and have problems debugging:
When I build a simple console application and let it run
everything is OK - Hello world.
But when starting the debugger nothing happens.
A breakpoint is never reached.
If I stop the debugger, it doesn't react.
When closing CB the message appears:
"Project close while debugging".
After confirming, the task manager shows
gdb.exe, gdborig.exe and conhost.exe are still running.
Have to kill them.
What's going wrong here?
--- End quote ---
This happens to me when:
1. I forget to turn on -g when compiling the project.
2. I have a request for input before any breakpoint.
3. gdb 8.1 with mingw seems to work ok in windows except for crashes when using "step out".
nji:
--- Quote from: oBFusCATed on July 04, 2020, 07:36:58 pm ---As far as I know the mingw64 release we're using has a broken debugger. You'll have to find something which works. I cannot help much, because I don't use windows...
--- End quote ---
I also doubt mingw-64 will be the cause.
I downloaded x86_64-posix-seh from MinGW-W64 GCC-8.1.0.
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/8.1.0/
Entered it as toolchain and debugger at CB (BTW sys.path.insert had a wrong path in it...)
And had exactly the same effect.
Also there is no hint on a bug like this for gdb.
Second I installed CodeLite (guess why!)
and used the mingw from above.
Everything and the debugger worked PERFECTLY.
So it seems to be an error of Code::Blocks again.
I wonder why (after more than a year) I'm the first
to run into it.
Concerning option -g:
The command line is
--- Code: ---g++.exe -Wall -fexceptions -g -c D:\Guido\develop\Mist\main.cpp -o obj\Debug\main.o
--- End code ---
("Mist" is the German word for "Junk".)
Navigation
[0] Message Index
[#] Next page
Go to full version