digitalmars.D.learn - break on assertion in GDB?
- Vlad Levenfeld (4/4) Jun 30 2014 Is this possible? I find myself having to set breakpoints up the
- Dicebot (4/8) Jun 30 2014 b _d_assert
- Vlad Levenfeld (3/12) Jun 30 2014 GDB recognizes both of these and sets the breakpoints, but never
- Vlad Levenfeld (2/2) Jun 30 2014 I tried it again in a different context and it worked. Odd.
- Vlad Levenfeld (4/4) Jul 05 2014 The reason it worked one time and not the other was because the
Is this possible? I find myself having to set breakpoints up the callchain and step through every invocation till I find the one that breaks. This is a really bad way to work, but when I fail an assertion in GDB, it just reports "program terminated."
Jun 30 2014
On Monday, 30 June 2014 at 11:56:27 UTC, Vlad Levenfeld wrote:Is this possible? I find myself having to set breakpoints up the callchain and step through every invocation till I find the one that breaks. This is a really bad way to work, but when I fail an assertion in GDB, it just reports "program terminated."b _d_assert b _d_assert_msg (out of my memory)
Jun 30 2014
On Monday, 30 June 2014 at 12:08:31 UTC, Dicebot wrote:On Monday, 30 June 2014 at 11:56:27 UTC, Vlad Levenfeld wrote:GDB recognizes both of these and sets the breakpoints, but never actually breaks.Is this possible? I find myself having to set breakpoints up the callchain and step through every invocation till I find the one that breaks. This is a really bad way to work, but when I fail an assertion in GDB, it just reports "program terminated."b _d_assert b _d_assert_msg (out of my memory)
Jun 30 2014
I tried it again in a different context and it worked. Odd. Anyway, thanks for the information.
Jun 30 2014
The reason it worked one time and not the other was because the other time was an exception, not an assertion. How do I break on exceptions? (ps. is there a guide anywhere to using GDB with D?)
Jul 05 2014