How to break gdb on D exception ?
BBasile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Oct 1 20:58:43 PDT 2015
Currently it works fine when throwing with core.exception
functions 'onXXXX', like explained in the wiki, for example:
---
break onFinalizeError
---
But I can't manage to break when a new Exception instance is
thrown in the code:
---
throw new Exception("ouch");
---
none of the following GB commands work:
---
catch catch
catch throw
catch signal all
catch signal
---
It looks like there are some tricks, like put a break on the vtbl
of the base throwable class (no quite sure about this to be
honest...)
Does anyone manage this ?
More information about the Digitalmars-d-learn
mailing list