scope guards & debugger breakpoints?

Robert M. Münch robert.muench at
Mon May 21 17:50:10 UTC 2018

On 2018-05-21 17:24:12 +0000, Steven Schveighoffer said:

> I'm not 100% sure but I expect:
> scope(failure)
>     someCode();
> putting a breakpoint on someCode should work.

When calling a function an then setting the breakpoint there, like in 
someCode() yes, that should work.

I used code like this:

scope(failure) {
	... several lines of code

And for this it seems (maybe I need to check in more detail) that in 
MSVC, I can set a breakpoint, but the breakpoint is not triggered when 
an exception is thrown.

Robert M. Münch
smarter | better | faster

More information about the Digitalmars-d-learn mailing list