Thread overview | |||||
---|---|---|---|---|---|
|
May 15, 2018 How do I make the debugger break when an exception is thrown in D? | ||||
---|---|---|---|---|
| ||||
I constantly keep getting this error. Please help. |
May 15, 2018 Re: How do I make the debugger break when an exception is thrown in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ethan Scott | On Tuesday, 15 May 2018 at 10:50:15 UTC, Ethan Scott wrote: > I constantly keep getting this error. > Please help. you can override the default exception handling to skip the global try/catch block and then GDB will halt instead of letting it run. http://arsdnet.net/this-week-in-d/2016-aug-07.html You can also add a breakpoint in a specific exception constructor or throw clause (for example find out line and column by browsing source) or check this forum post: https://forum.dlang.org/post/ucjzpvtpslyvskgykjxr@forum.dlang.org |
May 15, 2018 Re: How do I make the debugger break when an exception is thrown in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ethan Scott | On Tuesday, 15 May 2018 at 10:50:15 UTC, Ethan Scott wrote:
> I constantly keep getting this error.
> Please help.
an example:
$ gdb myprog
$ break _d_throwc
$ break _d_throwdwarf
$ run
then when it breaks,
$ bt
because the breaks are always a bit deeper than the interesting stuff.
Baz.
|
Copyright © 1999-2021 by the D Language Foundation