如果windows窗体是非常大的代码,如何在源代码上获取堆栈溢出异常的行号或位置 [英] How to get line number or place of stack overflow exception on source code if windows form is very big code

查看:66
本文介绍了如果windows窗体是非常大的代码,如何在源代码上获取堆栈溢出异常的行号或位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题

如果windows表格是非常大的代码,如何在源代码上获取行号或堆栈溢出异常?

How to get line number or place of stack overflow exception on source code if windows form is very big code ?

我有stackoverflow异常,但我无法确定发生此异常的行号或位置 

I have stackoverflow exception but i cannot determine which line number or place where this exception happen 

因此,是否有任何调试工具或任何方式或提示显示该行中的stackoverflow号码? 

so that Are there are any debug tool or any way or tips to display that stackoverflow in which line number ? 

我在visual studio 2015  windows表格中工作。

I work in visual studio 2015 windows form .

谢谢

< img alt =""src ="https://social.msdn.microsoft.com/Forums/getfile/1343448">

推荐答案

你发布的那张照片不是告诉你它发生在哪里吗?调用AfterColumnValueChanged时会发生这种情况。

Doesn't that picture you posted tell you where it happened? It's happening when AfterColumnValueChanged is called.

要检查的第一件事是AfterColumnValueChanged不是递归的。看一下调试器中的调用堆栈应该告诉你。

The first thing to check would be that AfterColumnValueChanged is not recursive. A look at the call stack in the debugger should tell you.


这篇关于如果windows窗体是非常大的代码,如何在源代码上获取堆栈溢出异常的行号或位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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