Created
April 14, 2015 12:51
-
-
Save SeriousM/ed5a0dc0ed5d9a8e09b9 to your computer and use it in GitHub Desktop.
VS2013+ magic/pseudo variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in the watch window or quickwatch: | |
"$exception": the current exception that is currently available. it has a much better debug experience in the quickwatch because it can look into the exception's type | |
"{num}#": eg "1#". this is a reference to an object with ObjectId. it acts as a weak-reference and does not affect the GC'ability of the object. http://blogs.msdn.com/b/zainnab/archive/2010/03/04/make-objectid-vstipdebug0015.aspx | |
"$ReturnValue": contains the return value from the last exited method. The autos-window contains a much better display of that. http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/27/seeing-function-return-values-in-the-debugger-in-visual-studio-2013.aspx | |
"$user": displays the information about the current user - eg to check for permissions, impersonations, etc | |
"{number-variable},h": displays the variable as hex | |
"{number-variable},d": displays the variable as decimal/number |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment