User forums > Using Code::Blocks
How to debug program without creating a project
wmaple:
Hello,
I have installed CodeBlock on my system, finding a problem with debugger. Within a project, I can start the debugger successfully; but without creating a project, namely coding a single source file, there is no way to start the debugger. Need any further setting or other something to do? Thanks.
thomas:
There is no support for debugging a single file in Code::Blocks. You can still start gdb from a commandline of course.
wmaple:
Is there any way I can give the developers some suggestion concerning debugging single source file?
I think many students will appreciate it.
CuteAlien:
I usually use printfs (or cout) and gdb for single source files. But being able to compile&debug single sourcefiles in C::B without creating a project for that would indeed be a nifty feature.
dk:
I am teaching high school students, and we make a lot of short and simple one-file programs.
Often the process of debugging one program requires just a couple of minutes, and creating project for debugging such programs need a lot of time.
So I also want to have a single-file debugging feature.
Navigation
[0] Message Index
[#] Next page
Go to full version