Author Topic: How to use code::Blocks(sample question)  (Read 5629 times)

Offline warren tang

  • Single posting newcomer
  • *
  • Posts: 3
How to use code::Blocks(sample question)
« on: November 17, 2009, 04:26:38 am »
Hi all,
        I use it first,and can't find how to do "single steps debug" ?Its "Debug" option always is invalide status.Then I open "CALL STACK","DISASSEMBLY","BREAKPOINT" flags,which are all gray,and can't show any message when I debug C++ program.
        Many many thanks your help!

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5914
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: How to use code::Blocks(sample question)
« Reply #1 on: November 17, 2009, 04:30:25 am »
Did you have any "debugger" installed???

You don't give us any useful information about your Os, your build toolchain, your C::B version....... thus, no one can help you easily.
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: How to use code::Blocks(sample question)
« Reply #2 on: November 17, 2009, 06:54:40 am »
Hi all,
        I use it first,and can't find how to do "single steps debug" ?Its "Debug" option always is invalide status.Then I open "CALL STACK","DISASSEMBLY","BREAKPOINT" flags,which are all gray,and can't show any message when I debug C++ program.
        Many many thanks your help!

You can not debug single-files in C::B, you have to use a project.

Offline warren tang

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to use code::Blocks(sample question)
« Reply #3 on: November 17, 2009, 08:28:19 am »
Hi ,
      I only install code::block8.02.Didn't specialy install other plug-in,and I think that Code::Block8.02 has debug default function without install other debug plug-in.Thanks.
 

Offline warren tang

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to use code::Blocks(sample question)
« Reply #4 on: November 17, 2009, 08:34:47 am »
Hi ,
      I can debug it if I use a project.Then I encounter a new problem,it say"tqproject - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping... " when I compile it.
"

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: How to use code::Blocks(sample question)
« Reply #5 on: November 17, 2009, 08:39:59 am »
Hi ,
      I can debug it if I use a project.Then I encounter a new problem,it say"tqproject - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping... " when I compile it.
"

(Always) search the forum (and(or the internet) before asking.

Tons of answers about that "issue".

In short install a compiler or correct the toolchain.

Read the manual : http://www.codeblocks.org/user-manual

Topic locked !