Author Topic: Debugger doesn't work  (Read 4956 times)

Offline pocoloco

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Debugger doesn't work
« Reply #15 on: May 13, 2022, 08:03:43 pm »
Interestingly when I google "No executable file now." all the relevant results I get are actually the source code for gdb.
So the error is there but nobody in the world is getting it except for me?  :-\

Offline pocoloco

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Debugger doesn't work
« Reply #16 on: May 13, 2022, 08:17:11 pm »
Can you also include the Codeblocks build log.
I have done some testing with the codeblocks-20.03mingw-nosetup.zip and tried with spaces in the C::B directory and GDB 8.1 and my hello world works.

I'll be damned.
I got it to work!

I started messing around with gdb itself. Running it directly and trying with different commands and configurations. Turns out giving it the command "target exec" is the problem. It for some reason unloads the executable from gdb. If I omit that command I'm actually able to run the program.
I then went to C::B and removed "target exec" from Settings -> Debugger -> Default and now I can actually debug.

No idea why it's happening or why nobody else on the internet seems to be having this issue.
But it seems to work!