Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: codinglexernewbie on December 24, 2021, 06:08:59 am

Title: debug doesn't work?
Post by: codinglexernewbie on December 24, 2021, 06:08:59 am
i've got a program, which crashes but when I run debug, it doesn't  arrow the line in which it crashes instead it just shows this: Setting breakpoints
Debugger name and version: GNU gdb (GDB) 8.1
Child process PID: 17796
In ?? () ()
any reasons why it doesn't work?
Title: Re: debug doesn't work?
Post by: jordi on December 24, 2021, 02:56:47 pm
Maybe you don't have the "debug target" selected.  You can checked it with the following menu sequence: Build - Select target - Debug
Title: Re: debug doesn't work?
Post by: BlueHazzard on December 25, 2021, 11:15:28 pm
Enable the full debug log:
Settings->Debugger->Common->Full (debug) log

then start the debugger an copy and paste the content of the debugger log tab found at the bottom here in the forum (please use the # tag in the post editor)

It could be that you are using a buggy gdb version that crashes