如何在调试时查看执行路径? [英] How to view execution path when debugging?

查看:66
本文介绍了如何在调试时查看执行路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想象一下,如果我写了类似

 Console.WriteLine(&"MethodName()" + Environment.NewLine); 




并在我的代码中的每个方法的开头添加它,我将能够观察控制流,或者从当前调试会话中的哪些方法调用哪些方法,并进行一些修改 - 用什么参数。我有一些大的
项目,我将永远手动添加这样的代码 - 在2015年或2013年的visual studio社区中是否有任何开箱即用的功能?

解决方案

您可以使用我的
运行时流程扩展来观察调用哪些方法以及使用哪些参数。

Imagine if I write something like

Console.WriteLine("MethodName()" + Environment.NewLine);


and add this at the beginning of every method in my code, I will be able to observe the flow of control, or which methods are being called from which methods in the current debugging session, and with some modifications - with what parameters. I have some large project that will take me forever to add such code manually - is there any such functionality out of the box in visual studio community 2015 or 2013?

解决方案

You can observe which methods are being called and with what parameters using my Runtime Flow extension.


这篇关于如何在调试时查看执行路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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