User forums > Using Code::Blocks
gcc debugger can not run
codelighter:
After read the Wiki http://wiki.codeblocks.org/index.php/Installing_a_supported_compiler, I think the version of GDB may be the answer.
But I'm not very sure which version of GDB would be the right opt. The above official wiki is not updated since 2017.
It's very hard for me to decide now. :-\
BlueHazzard:
Use the gdb shipped with the compiler... simply as that...
codelighter:
Sorry for puzzle you! It seems that the default mingw compiler Code::Blocks shipped with only support X86 on Windows. What I need is X64 binary exe, and this is the origin of evil.
By the way, you can easily reproduce this phenomenon by create a simple wxWidgets Dialog based GUI project,and comment the dialog set up lines in xxApp::OnInit() function,
then run the program in debug mode. At this time, the X64 GDB debugger would hang up,you could not stop it by press the debug button.
--- Code: --- // following lines are C::B auto-generate code, comment them, no dialog would present(intend to do this), and the X64 GDB debugger would hang up
// sbvpnDialog* dlg = new sbvpnDialog(0L);
// dlg->SetIcon(wxICON(aaaa)); // To Set App Icon
// dlg->Show();
--- End code ---
I hope Code::Blocks could fix this bug in the next patch version. ;D
BlueHazzard:
On windows only a 64bit application can stop 64bit applications. So if you debug a 64bit application you have to use 64bit codeblocks and 64bit gdb.
You can get a 64 bit codeblocks by using the nightly build from this forum or build it by yourself
You can get a 64bit gdb from for example mingw64 project. We do not distribute "offically" compiler and gdb...
If this does not fix your problem can you post a debug log? You first have to enable full debug logging in the debug settings.
jacksmith:
I'm new in codeblocks. I've installed codeblocks-17.12mingw but there's a problem when I open codeblock it shows a error bellow
Environment error
Can't find compiler executable in your configured search path's for Microsoft Visual C++ Toolkit 2003.
Please see the attachment.
Thanks
Note: I'm using windows 10 64 bit
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version