断点问题 [英] breakpoint problem
本文介绍了断点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在form1中有一个datagridview。当单击一个按钮时,form2出现,form1处于打开状态。
I have a datagridview in form1.When a button is clicked,form2 arises with form1 in open.
我清除了form2中dgv的所有行并添加了一个新的空行进入它。
Im clearing all the rows of dgv from form2 and adding a new empty row into it.
有时我执行它会在dgv.rows.clear()中抛出一个异常。
While im executing sometimes it throws an exception in dgv.rows.clear().
Operation did not succeed because the program cannot commit or quit a cell value change.
当我使用断点检查时,不会抛出该异常。
When i use breakpoint to check, that exception is not thrown.
有时只抛出异常而不是所有时间。
That exception is thrown sometimes only not all the times.
我怎样才能找到问题所在????
How can i find where the problem is???
推荐答案
转到调试| 例外... ,然后选择所需类别的例外旁边的抛出复选框。 我建议从
公共语言运行时异常开始。
Go to Debug | Exceptions... and select the thrown checkbox next to the desired class of exceptions. I would suggest starting with Common Language Runtime Exceptions.
这篇关于断点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文