Code::Blocks Forums

User forums => Help => Topic started by: alex303 on September 23, 2016, 11:00:58 pm

Title: Can't get the debugger to work
Post by: alex303 on September 23, 2016, 11:00:58 pm
Hello all, I am running codeblocks on a windows 10 x64 home edition computer and I have tried for many hours to get the debugger to work. Going through several forums and trying many many things. I hope someone here can help me. Here are the details:

-The debugger window has ALWAYS been empty
-I installed codeblocks in the shortest path: c:\codeblocks
-MinGW was installed at the same time as codeblocks via the build that included it
-The only checkbox in the compiler flags is "produce debugging symbols"
-I set the break points pretty much everywhere in the program and codeblocks skips right through them all
-The simple program I am trying basically opens a console and asks for some data input
-I'm running a simple .cpp file, not part of a project

I am starting to wonder if it's not as simple as "you cant get it to work this way". Am I doing something wrong? Feedback is much appreciated, thanks!

Alex
Title: Re: Can't get the debugger to work
Post by: oBFusCATed on September 24, 2016, 01:40:17 am
-I'm running a simple .cpp file, not part of a project
You cannot use the debugger if you don't have a project.
The debugger is started from Debug -> Start, my guess is that you're not using this menu, but probably Build -> Run.
Am I correct in my assumption?
Title: Re: Can't get the debugger to work
Post by: alex303 on September 24, 2016, 02:32:13 pm
Yes you are correct, thank you very much it works fine when part of a project :)

Alex