0

I'm using Code::Blocks 12.11 (with MinGW), and when I want to start a debugging session after setting program arguments, the GDB debugger just stop executing at the very beginning and the whole program freezes. It freaks me out, because I cannot debug my programs which need command line arguments. These are the last two lines in the "Debugger" window (after this nothing happens, Code::Blocks freezes):

Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.5

Does anyone know the reason, why GDB does not work with command line arguments?

4
  • 4
    GDB does work with command line arguments. Can you show a log of what GDB commands your IDE is actually running? Commented Sep 2, 2013 at 16:55
  • Uhmm, where can I find this log? I found a "Debugger initialization commands" box in debugger settings, but it is empty, I dont know is that what you were talking about... Actually it sometimes works, sometimes freezes (with the same arguments!), just like there is a bug in Code::Blocks/GDB which sometimes comes up and sometimes doesn't. Commented Sep 2, 2013 at 17:01
  • Sorry, I don't know anything about Code::Blocks. Commented Sep 2, 2013 at 17:04
  • Hopefully by now you have looked here. This was just a simple google search :) Commented Sep 8, 2013 at 20:23

1 Answer 1

0

Update CodeBlocks and GDB. It might be bugs and updating codeblocks is worth it because bugs have been solved.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.