C#-进入调试模式时跳过方法的属性 [英] C# - Attribute to Skip over a Method while Stepping in Debug Mode

查看:301
本文介绍了C#-进入调试模式时跳过方法的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在方法上使用属性,以便在Debug模式下单步执行某些代码时,Debugger停留在方法之外?

Is there an attribute I can use on a method so that when stepping through some code in Debug mode the Debugger stays on the outside of the method?

推荐答案

 [DebuggerStepThrough]

(文档 )

这篇关于C#-进入调试模式时跳过方法的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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