User forums > Using Code::Blocks
Debugging code Help
BlueHazzard:
Hi, sory i am on my phone, so the answer may be not 100% correct, but you will get the idea.
1) the settings about optimization is under
Project->build options->compiler settings
Make sure you have selected "debug" on the left side.
Make sure you use the debug target for using the debugger:
Select "debug" in the dropdown menu near the build button
2) you put the breakpoint in a decleration line. The compiler may ignore this line, try to place the breakpoint ine line 161 instead...
3) the debugger stops at the delete, because your application crashes there, probably you delete some wrong\incorrect pointer...
I have no idea, why you get a sigtrap at the delete.... If you delete a corupt pointer you get a sig segfault...
Greetings
Дмитро:
Thank you! So I'm kind of doing so.
It is already late, the second half of the night, or the day after tomorrow I will think carefully.
More. I'm not sure I understand.
Select "debug" in the dropdown menu near the build button
I put a lot of break points in various locations and functions.
BlueHazzard:
--- Quote ---I put a lot of break points in various locations and functions.
--- End quote ---
And none worked?
Дмитро:
The same. Really nobody worked.
I actually started to ask in the forum, after pyat or six hours tried to do something on their own.
BlueHazzard:
strange,
can you please post a full rebuild log (Build->Rebuild) and copy and post it here. Don't use a image, but post the actual "BUILD LOG"
then please start the debugger and post the debug log (the content of the log window from your screenshot) here.
To post this logs please paste it inside code tags (the # symbol in the new post editor)
greetings
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version