User forums > Using Code::Blocks

Debugging code Help

<< < (5/5)

Дмитро:
The problem is not solved. I am angry.
I researched the code, writing a text log the address of the new allocation of dynamic memory and delete it.
I opened the program in the debugger debugger ally.
The function is called a large number of times.
Four hours later I explored this strange place, and I was going through a lot in the debuggers, and I was writing additional code to reference a text log.

All is well removed. No problem. The memory is removed well, and there is no problem. Very good.

A program crashes badly. And it falls elsewhere. Some kind of unknown cause problems falls.
And I can not explore the falls. It would be best in a debugger here kodeblok that would adjust well.
Because I can not press F8 30 * 30 = Over 900 times !!!
What to do? How to solve it?

       BlueHazzard :
you can use this http://stackoverflow.com/a/1691025 in Settings->Debugger->GDB debugger->Default->Debugger initialization commands

greetings

----   Thank you! Well it gives us good hope.

What words should I write in this window? What kind of command should I put?


BlueHazzard:
what is posted in the link:

--- Code: ---handle SIGTRAP nostop
--- End code ---
this will prevent that gdb stops at SIGTRAP

papagym:
I hate to point this out, but the code::blocks wiki materials is so outdates none if us new CB users can figure out how to use the debugger.  I've read it a halve dozen times and it doesn't make much sense. It shows really old dialog box material in there, that doesn't pertain to or look like CB 13.12 or 16.01 for that matter.


Amntpo... try setting the settting using the FILE MENU ==>Project==>Build Options.  I think they are trying to point this out to you.
Good luck!

BlueHazzard:

--- Quote from: papagym on July 01, 2016, 04:51:51 pm ---I hate to point this out, but the code::blocks wiki materials is so outdates none if us new CB users can figure out how to use the debugger.  I've read it a halve dozen times and it doesn't make much sense. It shows really old dialog box material in there, that doesn't pertain to or look like CB 13.12 or 16.01 for that matter.

--- End quote ---
You can help to improve it. Every help (especially at the wiki) is welcome. I think the forum login is also the wiki login. (what page is outdated, can you please post the link? )


--- Quote from: papagym on July 01, 2016, 04:51:51 pm ---Amntpo... try setting the settting using the FILE MENU ==>Project==>Build Options.  I think they are trying to point this out to you.
Good luck!

--- End quote ---
NO! The settings i mentioned are for the debugger (Settings-->Debugger-->GDB debugger-->Default-->Debugger initialization commands) !! Build options have nothing to do with the debugger!!!
You can enter the

--- Code: ---handle SIGTRAP nostop
--- End code ---
also in the gdb command line: During debugging select the "Debugger" tab and enter "handle SIGTRAP nostop" in the "Command" field at the bottom and press enter

greetings


Navigation

[0] Message Index

[*] Previous page

Go to full version