如何在你的应用中找到递归? [英] How to find recursion in your app?

查看:50
本文介绍了如何在你的应用中找到递归?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 c# 服务有一个内部 .net 执行错误,指向递归问题(例如堆栈溢出).问题是该服务非常大,所以我很难找到递归实际发生的位置.

My c# service got an internal .net execution error that points to recursion issue (e.g. stack overflow). The problem is that the service is pretty large, so I am having trouble finding where the recursion actually occurs.

拥有大量正则表达式魔力的人能否为我提供一个可以找到我需要的搜索字符串?

Can someone with massive regex mojo hook me up with a search string that would find what I need?

推荐答案

在一般情况下,这是一个无法回答的问题.除了最琐碎的例子(例如直接调用自身的函数),没有办法分析程序并确定是否发生递归.您只需要开始使用调试器或其他运行时工具即可.

This is an unanswerable question in the general case. Except for the most trivial examples (e.g. a function calling itself directly), there's no way to analyze a program and determine if recursion occurs. You'll just need to start hitting the debugger or other runtime tools.

这是暂停问题的一个例子.

这篇关于如何在你的应用中找到递归?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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