Sign In
Mike Stall's .NET Debugging Blog
Notes on Managed Debugging, ICorDebug, and random .NET stuff
Blog - Link List
Other Blogs
Andy Pennell's Blog
GreggM's Blog
Steve's Blog
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?
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Compilers & Languages
Design
dlr
Edit-And-Continue (EnC)
Family
FuncEval
ICorDebug
Interop (mixed-mode)
linkfest
MDbg
Non-work
Pages
Python
Quiz
Random
random .net
reading
Sample Code
Silverlight
Testing
This should be in MSDN
Troubleshooting
versioning
Whidbey (V2.0)
Windows Live
Archive
Archives
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)
February, 2005
MSDN Blogs
>
Mike Stall's .NET Debugging Blog
>
February, 2005
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Mike Stall's .NET Debugging Blog
Don’t do “complicated” work in Release().
Posted
over 7 years ago
by
Mike Stall - MSFT
9
Comments
BradA has been talking about API design guidelines, which reminds me of a bunch of subtle API design lessons we’ve learned from mistakes made in ICorDebug. I’ve started a list and it’s depressingly long. As I blog about these, I’ll pull samples from ICorDebug...
Mike Stall's .NET Debugging Blog
Debugging any .Net language
Posted
over 7 years ago
by
Mike Stall - MSFT
7
Comments
The CLR is a cross-language platform, so it follows the CLR-debugging services are also cross-language. This means any 3 rd -party can write their own managed debugger, and that can debug any managed app produced by any 3 rd -party compiler. (This holds...
Mike Stall's .NET Debugging Blog
Tool to allow inline IL in C# / VB.Net
Posted
over 7 years ago
by
Mike Stall - MSFT
32
Comments
C# doesn’t support inline IL. As an experiment, I wrote a post-compiler tool that allows primitive IL inlining for C# / VB.Net (or any .net language). (My main goal here was I actually wanted to try out fxcop and needed some pet project to do it with...
Mike Stall's .NET Debugging Blog
3rd-parties and Edit And Continue (Part 2: Debuggers)
Posted
over 7 years ago
by
Mike Stall - MSFT
4
Comments
I recently blogged about what’s involved for 3 rd -parties doing Edit-and-Continue (EnC ), where I explained EnC is an IDE (at least debugger+editor+compiler) wide feature, not just a debugger feature. In that entry, I alluded to some basic work a 3 rd...
Mike Stall's .NET Debugging Blog
3rd-parties and Edit-and-Continue (Part 1: Editors + Compilers)
Posted
over 7 years ago
by
Mike Stall - MSFT
13
Comments
I’ve said before that any 3 rd party debuggers can add Edit-And-Continue (EnC) support, and now I want to be very clear exactly what that means. I’ve found people mean two different questions here: 1) Managed debugging is language neutral, so how can...
Mike Stall's .NET Debugging Blog
What if you do attach both a managed and native debugger simultaneously?
Posted
over 7 years ago
by
Mike Stall - MSFT
2
Comments
I mentioned that you can’t have both a managed and native debugger attached to the same process . But I also mentioned that we can’t always enforce that. So the natural question arises: what if you do attach a managed and native debugger to the same process...
Mike Stall's .NET Debugging Blog
Rick Byers has started a blog!
Posted
over 7 years ago
by
Mike Stall - MSFT
0
Comments
Rick Byers has started a blog (actually, he's had it for about a week now)! Check out http://blogs.msdn.com/rmbyers/ . Rick is another developer on the CLR debugging services. He knows a lot more theory then I do, and has the most experience actually...
Mike Stall's .NET Debugging Blog
Easily passing Managed strings to Unmanaged code (round 2)
Posted
over 7 years ago
by
Mike Stall - MSFT
0
Comments
My previous blog entry was about passing Managed strings to unmanaged code. Not being very interop-savy, I came up with a method and concluded there must be a better way – and lots of people quickly let me know there was (especially Nicholas Allen, jiangsheng...
Mike Stall's .NET Debugging Blog
Winforms + Mdbg threading issue
Posted
over 7 years ago
by
Mike Stall - MSFT
3
Comments
In this blog entry, I’ll explain how the Winforms UI on top of MDbg handles the plumbing and threading with the shell. Why build a gui on top of the shell? The MDbg shell provides a lot of functionality (such as all the shell commands) that a UI could...
Mike Stall's .NET Debugging Blog
Hardmode vs. Softmode
Posted
over 7 years ago
by
Mike Stall - MSFT
6
Comments
User-mode debugging can be split into 2 models: Hardmode and Softmode. Hardmode means using the native debugging APIs. This means all threads are stopped by the OS at each debug event and there’s no helper-thread . The debugger does not need to run any...
Mike Stall's .NET Debugging Blog
Compiler Lab Results
Posted
over 7 years ago
by
Mike Stall - MSFT
2
Comments
Microsoft has been having a .Net compiler lab from Feb 7 to Feb 9. It looks like it’s been going very well, so kudos to the organizers. I’ve had a chance to talk to a few people about clr debugging and they’ve asked some great questions. Here’s a sampling...
Mike Stall's .NET Debugging Blog
Source for a C# compiler written in pure C#.
Posted
over 7 years ago
by
Mike Stall - MSFT
48
Comments
For anybody looking for the full source to a bootstrapping C# compiler, today’s your lucky day. A while ago (back in 2001 before we shipped v1.0), I wrote a C# compiler called “Blue”. I know it’s 3.5 years after I wrote it, but I figured releasing it...
Mike Stall's .NET Debugging Blog
Source is available for MDbg Winforms GUI!
Posted
over 7 years ago
by
Mike Stall - MSFT
21
Comments
The source for the Winforms GUI extension to MDbg is now available as a sample. (Sorry it took so long). The download is available here . I’ve also updated the original post with this link. Here's a screenshot of the updated gui:
Mike Stall's .NET Debugging Blog
Why you can’t do Edit-and-Continue on Dynamically generated code
Posted
over 7 years ago
by
Mike Stall - MSFT
4
Comments
I gave a brief example of how you can debug dynamically generated code (e.g., code generated via Reflection.Emit). Jamie Cansdale observed that you can’t use EnC with dynamically generated code. This was a conscious choice. Here are some reasons for it...
Mike Stall's .NET Debugging Blog
Debugging Dynamically Generated Code (Reflection.Emit)
Posted
over 7 years ago
by
Mike Stall - MSFT
27
Comments
The CLR supports the ability to generate code at runtime (Reflection.Emit). This is great for the many dynamic languages targeting the runtime (such as Iron Python ). We also support that ability to provide debugging information for that code so that...
Mike Stall's .NET Debugging Blog
Implementing ICorDebug to reuse existing debuggers?
Posted
over 7 years ago
by
Mike Stall - MSFT
8
Comments
I usually talk about people writing debuggers to consume the ICorDebug API and debug CLR applications. Nathanael Presson asked me the exact inverse question: … my concern is not to write a debugger for managed code, but to make my own self cooked .net...
Page 1 of 1 (16 items)