异常中断窗口不显示 [英] Exception Interruption Window DOES NOT APPEAR

查看:59
本文介绍了异常中断窗口不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。最近我遇到了这个问题,我不知道为什么。

下一个简单的代码例如:

Hi. Recently I got this problem and I don''t know why.
Next simple code for example:

展开 | 选择 | Wrap | 行号

推荐答案

发布代码时请使用代码标签。


我不明白你的问题是什么。没有错误在你的语法中。 VectorA.GetLength(1)将返回2.
Please use code tags when posting code.

I don''t understand what your question is. There''s no "error" in your syntax. VectorA.GetLength(1) will return 2.


你好兔子。

有一个错误:array.GetLength(1)....那个 1 QUOT;是数组维度索引。第一个索引是索引0。

但无论如何,这个例子在这里并不重要。


想象一下,码。当我运行de应用程序时,debbuger不会停止de program并向我显示异常。


如果我放置Try-Catch它可以工作,但如果没有,debbuger会忽略异常并且跳过每一行代码直到完成整个块。


问候。
Hi Rabbit.
There is an error: array.GetLength(1).... That "1" is the array dimension index. The first index would be index "0".
But anyway, that example is not important here.

Just imagine that there is an error in the code. When I run de application the debbuger does not stop de program and show me the exception.

If I put a Try-Catch it works, but if not, the debbuger ignores the exception and jump every line of code until finish the entire block.

Regards.



有错误:array.GetLength(1)....那个1是数组维度索引。第一个索引是索引0。
There is an error: array.GetLength(1).... That "1" is the array dimension index. The first index would be index "0".



这不是语法错误。是的,第一个索引是0.但是做array.GetLength(1)并没有错。使用array.GetLength(1)不会产生错误,因为这样做没有错误。

That''s not a syntax error. Yes, the first index is 0. But there''s nothing wrong with doing array.GetLength(1). Using array.GetLength(1) produces no error because there is no error in doing that.


这篇关于异常中断窗口不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆