User forums > Using Code::Blocks

Boost assertions closes the debugger

<< < (2/10) > >>

oBFusCATed:
Neil, please lets wait for the ThundThund to provide details about his problem.

zabzonk:
Why? Surely the code I posted is useful and of interest to anyone using BOOST_ASSERT?

Further information, it appears that BOOST_ASSERT calls std::abort() on an assertion failure. Although I can see a debugger catching the abort, I can't see how it can catch the line at which the abort occurred, which is what the OP was asking about.

ThundThund:
Thanks for all your answers.

Windows7/CB 10.05/MinGW (GCC 4.4.1)/ Boost 1.46.1

Well, the problem is that I'm coming from Visual Studio, and there the assertions break the execution at the line they fail, giving you the chance to review variable values and so, like a breakpoint. Even more, you can press F5 again and continue debugging (the program continues normally).
I expected CB has the same feature or a way to emulate it.

oBFusCATed:
ThundThund:
1. can you provide a minimal code sample.
2. try the debuggers branch nightly build

Neil: Stop the off topic, please, ThundThund has a concrete problem, so lets concentrate on it. And yes, C::B can put the current position marker on the line of the ASSERT, if the option 'When stopping, auto-switch to the first valid frame...' is enabled.

zabzonk:
> Stop the off topic, please

I certainly may be wrong, but I am definitely not off-topic.

> ThundThund has a concrete problem

Which I am addressing. My approach may be different from yours, but that doesn't make it "wrong" (though it might be)  or "off-topic".

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version