Sign in
Mike Stall's .NET Debugging Blog
Notes on Managed Debugging, ICorDebug, and random .NET stuff
Blog - Link List
Other Blogs
Tim's .NET blog
Energy Policy
CLR blogs
Rick Byers (CLR)
List of all CLR blogs
David Broman (Profiling)
Thomas Lai's blog
Other links
All about MDbg
What's new in v2.0?
Who am I?
ICorDebug/MDbg Forums
Contact me?
ASP.Net
ScottGu's blog
Henrik's blog
Brad Wilon's blog
Carlos Figueira's blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
RSS for posts
Atom
RSS for comments
OK
Search
Tags
Compilers & Languages
Design
dlr
Edit-And-Continue (EnC)
Family
feedback
FuncEval
ICorDebug
Interop (mixed-mode)
linkfest
MDbg
Non-work
Pages
Quiz
Random
random .net
reading
Sample Code
Silverlight
This should be in MSDN
Troubleshooting
versioning
WebAPI
Whidbey (V2.0)
Windows Live
Archive
Archives
August 2012
(2)
May 2012
(3)
April 2012
(5)
March 2012
(2)
November 2011
(1)
September 2011
(1)
December 2010
(1)
September 2009
(2)
July 2009
(1)
May 2009
(1)
February 2009
(1)
November 2008
(1)
June 2008
(1)
May 2008
(2)
April 2008
(3)
March 2008
(5)
February 2008
(2)
January 2008
(10)
December 2007
(7)
November 2007
(5)
October 2007
(16)
September 2007
(8)
August 2007
(12)
July 2007
(9)
June 2007
(5)
May 2007
(7)
April 2007
(4)
March 2007
(6)
February 2007
(5)
January 2007
(11)
December 2006
(9)
November 2006
(13)
October 2006
(9)
September 2006
(10)
August 2006
(6)
July 2006
(13)
June 2006
(10)
May 2006
(3)
April 2006
(4)
March 2006
(31)
February 2006
(16)
January 2006
(18)
December 2005
(11)
November 2005
(23)
October 2005
(12)
September 2005
(22)
August 2005
(31)
July 2005
(10)
June 2005
(7)
May 2005
(4)
April 2005
(5)
March 2005
(9)
February 2005
(16)
January 2005
(6)
December 2004
(3)
November 2004
(4)
October 2004
(14)
September 2004
(2)
March, 2005
MSDN Blogs
>
Mike Stall's .NET Debugging Blog
>
March, 2005
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Mike Stall's .NET Debugging Blog
Caveats about System.Diagnostics.StackTrace
Posted
over 8 years ago
by
Mike Stall - MSFT
16
Comments
The .Net frameworks provides the System.Diagnostics.StackTrace class which allows you to get a stack trace at runtime. This can be handy for diagnostic purposes such as implementing an assert dialog. However, beware of the following about the StackTrace...
Mike Stall's .NET Debugging Blog
Quiz about C# and object equality.
Posted
over 8 years ago
by
Mike Stall - MSFT
13
Comments
Here’s a silly little C# pop-quiz about equality. Given a local variable x declared of type ‘int’, what do the following C# expressions evaluate to? x == x (object) x == (object) x (System.Object) x == (System.Object) x (int) (object) x == (int) (object...
Mike Stall's .NET Debugging Blog
Func-eval is evil
Posted
over 8 years ago
by
Mike Stall - MSFT
12
Comments
Function evaluation (aka “Func-eval”, “property evaluation”, “prop eval”) is the ability for a debugger to have the debuggee call a random function when stopped at a breakpoint. For eg, this lets you call functions from VS’s immediate window. Func...
Mike Stall's .NET Debugging Blog
Why you can’t debug mscorwks when interop-debugging
Posted
over 8 years ago
by
Mike Stall - MSFT
12
Comments
Interop (aka mixed-mode) debugging allows you to debug both the managed and unmanaged portions of your app. However, even when interop-debugging, you still can’t debug the core runtime itself (most of mscorwks.dll). I briefly here that the key danger...
Mike Stall's .NET Debugging Blog
Managed Debugging doesn’t support Fibers
Posted
over 8 years ago
by
Mike Stall - MSFT
9
Comments
Although managed-debugging definitely supports multi-threaded debuggees, it does not support debugging processes with fibers. The V2.0 CLR provides fiber support, however the ability to debug fiber-mode applications was cut . There are a few reasons that...
Mike Stall's .NET Debugging Blog
C# and Equals() in V2.0 versus V1.0.
Posted
over 8 years ago
by
Mike Stall - MSFT
7
Comments
Here’s some wacky trivia: In v1.1, C# evaluates 3 f .Equals(3) to False. In v2.0, it evaluates to True. (Note that the f suffix lexes as floating point, so 3f is floating-point and 3 is integer). Folks seem to like the v2.0 behavior a lot more, so this...
Mike Stall's .NET Debugging Blog
Quiz about Object.Equals()
Posted
over 8 years ago
by
Mike Stall - MSFT
5
Comments
I posted a quiz about C# equality here . It focused on equality via operator== and had questions like “what does this evaluate to: ((float) (int) x == (int) (float) x)”. The key takeaway from the quiz was that after you account for reference vs. value...
Mike Stall's .NET Debugging Blog
Clearly Document Object Lifespans
Posted
over 8 years ago
by
Mike Stall - MSFT
4
Comments
I’ve started commenting on API design lessons we’ve learned from mistakes in ICorDebug. I previously blogged about dangers of doing complicated work in IUnknown::Release or C++ destructors. Another API design point is [update: include 2nd half of sentence...
Mike Stall's .NET Debugging Blog
Answers to C# Equality quiz
Posted
over 8 years ago
by
Mike Stall - MSFT
2
Comments
Here are answers and commentary for the quiz that appeared here . The quiz is what do each of the C# expressions below evaluate to (in an unchecked context), given that x is a local variable of type ‘int’. With each case, the key is to understand what...
Page 1 of 1 (9 items)