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)
July, 2006
MSDN Blogs
>
Mike Stall's .NET Debugging Blog
>
July, 2006
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Mike Stall's .NET Debugging Blog
Managed vs. Native debugging APIs
Posted
over 7 years ago
by
Mike Stall - MSFT
6
Comments
FxCop has a great rule ( UseManagedEquivalentsOfWin32Api ) to tell you about managed APIs that exist instead of trying to pinvoke out. I'm writing a native debugger in managed code (more on this later), and FxCop was telling me to use the managed debugging...
Mike Stall's .NET Debugging Blog
Conventions for passing the arguments to a process
Posted
over 7 years ago
by
Mike Stall - MSFT
4
Comments
A process's main() function gets an array of strings for the command line args. This is string[] in C#, or {int argc, char** argv} in C/C++. But there are some different conventions for how the parent app passes those strings in. If you execute a program...
Mike Stall's .NET Debugging Blog
Working on managed wrappers for Native Debugging API
Posted
over 7 years ago
by
Mike Stall - MSFT
12
Comments
FWIW, I've been working on some managed wrappers for the native debugging API ( kernel32!WaitForDebugEvent ,etc) My goals are: Make it extremely easy to use the native debugging API. Maintain fidelity to the native debug API. I didn’t want...
Mike Stall's .NET Debugging Blog
Debugger.Log vs. OutputDebugString
Posted
over 7 years ago
by
Mike Stall - MSFT
3
Comments
Both Debugger.Log and OutputDebugString have some key similarities: The both log string for debugging purposes Both have thread-affinity. (The debugger can find out which thread logged) Data is piped through with no additional semantics in...
Mike Stall's .NET Debugging Blog
Caveats about managed JIT-debugging
Posted
over 7 years ago
by
Mike Stall - MSFT
3
Comments
I received some questions in the mailbag about what Debugger.Launch actually does. Debugger.Launch the same mechanism as JIT-attach when you get an unhandled managed exception. Here are some random caveats about the jit-launch mechanism: Jit-launch...
Mike Stall's .NET Debugging Blog
Resolving functions and func-eval syntax
Posted
over 7 years ago
by
Mike Stall - MSFT
0
Comments
I got a question about MDbg's func-eval syntax, which brings up a nice point about function resolution: Is it possible to evaluate a function by specifying an instance variable instead of the fully qualified name of the class? f ex.get_StackTrace...
Mike Stall's .NET Debugging Blog
#line hidden vs. DebuggerNonUserCode attribute
Posted
over 7 years ago
by
Mike Stall - MSFT
1
Comments
I got this great question from the mailbag: "[W]hat is the relation between the "# line hidden" directive and the DebuggerNonUserCode attribute ? Are these the same ?" Short Answer : They're both markings that library authors can put in their source...
Mike Stall's .NET Debugging Blog
Coffee and the L2 Cache
Posted
over 7 years ago
by
Mike Stall - MSFT
6
Comments
My wife gave me a coffee grinder for my birthday. I've come a long way from instant coffee; I've now got the whole coffee pipeline: from whole beans, through the grinder, through the coffee maker, into the coffee pot, and into my mug. Anyway, thinking...
Mike Stall's .NET Debugging Blog
You can't cast from a pointer to a managed object in the debugger
Posted
over 7 years ago
by
Mike Stall - MSFT
2
Comments
During native debugging, it's common to cast a raw pointer value to a given type. Eg, in the expression window, do: (Foo*) 0x12345; You may have noticed that you can't do this in managed code. This is a restriction at the ICorDebug (CLR) level. Some...
Mike Stall's .NET Debugging Blog
Experiences with FxCop and wrapping the native debug API
Posted
over 7 years ago
by
Mike Stall - MSFT
6
Comments
I'm writing some managed wrappers for the native-debugging API (I expect they'll eventually become part of the MDbg sample). I'm trying to make them FxCop compliant. Here are some random thoughts about my experiences. FxCop has a lot of great rules...
Mike Stall's .NET Debugging Blog
Lessons from political bloggers
Posted
over 7 years ago
by
Mike Stall - MSFT
0
Comments
Today on MS Campus, two successful political bloggers, conservative Stefan Sharkansky and liberal David Goldstein , spoke about blogging. They had a lot of similarities: Both software entrepreneurs, 43, sporting beards, transplants to Seattle, parents...
Mike Stall's .NET Debugging Blog
Upcoming compiler lab
Posted
over 7 years ago
by
Mike Stall - MSFT
0
Comments
There's an upcoming Lang.Net Symposium (Compiler Lab++) on Microsoft Campus. Kathy and Thottam have more details. The schedule's got a lot of stuff that's sounds a lot cooler than debugging; but if you're on campus and want to chat about making your language...
Mike Stall's .NET Debugging Blog
MDbg / ICorDebug forum is now available!
Posted
over 7 years ago
by
Mike Stall - MSFT
0
Comments
We've just created a new public forum for answering ICorDebug and MDbg questions. Check out: http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=868&SiteID=1 This is a great place to post any questions you have about the Mdbg sample, ICorDebug...
Page 1 of 1 (13 items)