Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: slave of the mind on November 15, 2009, 09:25:57 am

Title: debugging in CB 8.02
Post by: slave of the mind on November 15, 2009, 09:25:57 am
Hi all.

I installed CodeBlocks on my comp for writing some C code files (no projects no C++).
I tried to debug but all my debug operations are disabled, how do i enable them?
I saw it uses the compiler installed in c:\program files\codeblocks\minGW and tried to switched to the one I had installed with Dev-cpp but than i couldnt compile anymore.

my CB version is 8.02
the compiler is "GNU GCC Compiler"
and from what i understood i also have the MS compiler and Borland C++ compiler.

thanks for any help
Title: Re: debugging in CB 8.02
Post by: Jenna on November 15, 2009, 10:48:48 am
You cannot debug single files.

You have to use a project for this purpose.
Title: Re: debugging in CB 8.02
Post by: slave of the mind on November 15, 2009, 05:42:46 pm
this is an official state?

because i know in other C compilers\debuggers they let you debug single files
Title: Re: debugging in CB 8.02
Post by: Jenna on November 15, 2009, 05:53:43 pm
this is an official state?

It's a fact.

You can not use a debugger without a project in Code::Blocks.
Title: Re: debugging in CB 8.02
Post by: mandrav on November 17, 2009, 10:18:24 am
this is an official state?

It's a fact.

You can not use a debugger without a project in Code::Blocks.

Unless you attach the debugger to a running process...