scope guards & debugger breakpoints?

Steven Schveighoffer schveiguy at yahoo.com
Mon May 21 17:24:12 UTC 2018


On 5/21/18 1:00 PM, Robert M. Münch wrote:
> If I use scope(failure) with code that should be run if an exception is 
> thrown, how can I set a breakpoint for this code in the debugger?
> 

I'm not 100% sure but I expect:

scope(failure)
    someCode();

putting a breakpoint on someCode should work.

-Steve


More information about the Digitalmars-d-learn mailing list