Author Topic: Can't get the debugger to work  (Read 2829 times)

Offline alex303

  • Single posting newcomer
  • *
  • Posts: 3
Can't get the debugger to work
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't get the debugger to work
« Reply #1 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?
(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!]

Offline alex303

  • Single posting newcomer
  • *
  • Posts: 3
Re: Can't get the debugger to work
« Reply #2 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