Author Topic: Why a single source file cannot be debugged?  (Read 7690 times)

Offline xparmenides

  • Single posting newcomer
  • *
  • Posts: 2
Why a single source file cannot be debugged?
« on: December 16, 2012, 09:15:05 am »
Hi,

   Codeblocks can compile a single source file (does not be contained in a project), and run the produced executable file. But, Codeblocks can not debug it. That is the debugger can not be started through pressing F8. If in a project, the debugger works well. So, I think this really strange. Is there any way to start the debugger for a single source file?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Why a single source file cannot be debugged?
« Reply #1 on: December 16, 2012, 09:22:31 am »
No !
It's discussed many times in the forum.

Offline xparmenides

  • Single posting newcomer
  • *
  • Posts: 2
Re: Why a single source file cannot be debugged?
« Reply #2 on: December 16, 2012, 01:28:54 pm »
I think it may be supported in future. Is it a very hard work? I have no idea about it, but I really need it.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Why a single source file cannot be debugged?
« Reply #3 on: December 16, 2012, 02:59:22 pm »
I think it may be supported in future. Is it a very hard work? I have no idea about it, but I really need it.
There are very good reasons not to do it. Search the forums.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ