“隐藏秘密”的Visual Studio .NET调试器? [英] "Hidden Secrets" of the Visual Studio .NET debugger?

查看:97
本文介绍了“隐藏秘密”的Visual Studio .NET调试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一般不喜欢SO的讨论/主观职位,我真的来欣赏人们把这些隐藏的秘密的一些帖子。他们提供了您可能会发现的一些常见错过的工具的很好的概述。

As much as I generally don't like the discussion/subjective posts on SO, I have really come to appreciate the "Hidden Secrets" set of posts that people have put together. They provide a great overview of some commonly missed tools that you might now otherwise discover.

对于这个问题,我想探索Visual Studio .NET调试器。您经常或最近发现的VS.NET调试器中的一些隐藏的秘密是什么,希望你早就知道?

For this question I would like to explore the Visual Studio .NET debugger. What are some of the "hidden secrets" in the VS.NET debugger that you use often or recently discovered and wish you would have known long ago?

推荐答案

我最喜欢的功能之一是当点击...选项在断点上可用。您可以打印带有变量值的消息以及许多其他信息,例如:

One of my favorite features is the "When Hit..." option available on a breakpoint. You can print a message with the value of a variable along with lots of other information, such as:


  • $地址 - 当前说明

  • $ CALLER - 上一个功能名称

  • < $ code $ $ CALLSTACK - 调用堆栈
  • $ FUNCTION - 当前函数名

  • $ PID - 进程ID

  • $ PNAME - 进程名称

  • $ TID - 线程ID

  • $ TNAME - 线程名称

  • $ADDRESS - Current Instruction
  • $CALLER - Previous Function Name
  • $CALLSTACK - Call Stack
  • $FUNCTION - Current Function Name
  • $PID - Process ID
  • $PNAME - Process Name
  • $TID - Thread ID
  • $TNAME - Thread Name

您还可以运行一个宏,但是'从来没有使用过这个功能。

You can also have it run a macro, but I've never used that feature.

这篇关于“隐藏秘密”的Visual Studio .NET调试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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