News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Can't get the debugger to work

Started by alex303, September 23, 2016, 11:00:58 PM

Previous topic - Next topic

alex303

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

oBFusCATed

Quote from: alex303 on September 23, 2016, 11:00:58 PM
-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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

alex303

Yes you are correct, thank you very much it works fine when part of a project :)

Alex