Author Topic: Can't Get Debugger to Work  (Read 107 times)

Offline JoeH

  • Single posting newcomer
  • *
  • Posts: 7
Can't Get Debugger to Work
« on: Today at 06:14:06 am »
I have tried several times to use the debugging capability of Code::Blocks, but I cannot get it to work.  I am using version 25.03 on Windows 11.  Most recently, I tried to follow a YouTube "How To" video with no better luck.  The small C language test program will compile (Debug Build Target selected) and execute successfully.  However, when I try to run the debugger, it appears that Code::Blocks tries to rebuild the code and fails.  Is there something else besides selecting the Debug build target that must be done before the debugger will work?

Joe

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6102
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Can't Get Debugger to Work
« Reply #1 on: Today at 07:00:37 am »
Quote
when I try to run the debugger, it appears that Code::Blocks tries to rebuild the code and fails

I'm not sure how you configure the debugger, and I don't know what is the exactly error, can you show us some log message about debugger? It is normally in the "Debugger" output panel in the bottom of the IDE window.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.