1

I don't like the fact that VB.NET is silently failing on an operation if something goes wrong:

    Dim n(10) As String
    n(11) = "blah"

I do not want to handle such situation with a Try/Catch/Finally, that would be an overkill. I will stumble over such situations while testing my application during development.

But the fact that VB.NET simply skips over this error is a bit annoying. Can I change the IDE so that it breaks in this line?

Thank you very much!

4

1 に答える 1

5

[デバッグ]、[例外]の順にクリックし、すべてのチェックボックスをオンにします。

デバッガーは、例外がどこかでスローされても、後で処理されても中断しません。

于 2012-10-15T17:02:21.893 に答える