I am working on C++ and I created a file and put a breakpoint, but when I start debugging, it opens up a terminal, and suddenly it closes it. I am not sure what is wrong with debugging. If I run the project, it is working fine, it will ask for user input as per my program, but debugging is not working. Kindly help me. I have followed some questions but this issue is nowhere
1 Answer
If anyone facing this issue. I have found a workaround, instead of using codeblock gdb for debugging use msys64 ming64 gdb. Go to setting -> debugger-> select GDB/CDB debugger->default. In the executable path: give the path of msys64 gdb(C:\msys64\mingw64\bin\gdb). I am still not sure why it is not working with inbuilt gdb of codeblocks.
2 Comments
user4581301
As an addendum, consider replacing the entirety of the build tools shipped with Code::Blocks. When GCC 13 and MSYS's excellent library support is available, why use GCC 8 and have to build all of the common support tools yourself?
Rahul verma
yeah, I setup it for basic programming only.
mainand pray that you don't have an initialization failure BEFOREmainis reached), something is not configured correctly, and the only way for us to help you is for you to add the bit of broken configuration to the question for us to examine. And the only way to know what in the configuration is broken so you can add it to the question is often to have already solved the problem.