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)
November, 2005
MSDN Blogs
>
Mike Stall's .NET Debugging Blog
>
November, 2005
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Mike Stall's .NET Debugging Blog
VS 2003 can not debug .NET 2.0 apps.
Posted
over 8 years ago
by
Mike Stall - MSFT
6
Comments
Somebody asked here on the forums if you can use VS 2003 to debug .NET 2.0 (whidbey) apps. Unfortunately, the answer is no. VS 2003 can not debug .NET 2.0 apps. It is a restriction in the underlying .NET debugging services (see below) You can still use...
Mike Stall's .NET Debugging Blog
Tool to get snapshot of managed callstacks
Posted
over 8 years ago
by
Mike Stall - MSFT
14
Comments
I wrote a simple tool to take a snapshot of a running managed process and dump the output as an XML file. I'll post the full source as a sample on MSDN. [ Update 6/26/06] After great delay, source posted here . Also, check out Managed Stack Explorer ...
Mike Stall's .NET Debugging Blog
Blog Category for Func-eval
Posted
over 8 years ago
by
Mike Stall - MSFT
6
Comments
I created a blog category for Func-eval (aka Property Evaluation), and I updated some of my old posts to be in this category. And while I'm at it, some other func-eval blog entries: GreggM on Func-eval and Winforms SteveJS on Nested Break States (stopping...
Mike Stall's .NET Debugging Blog
Poor Man's Radio
Posted
over 8 years ago
by
Mike Stall - MSFT
6
Comments
I stumbled across this by accident. If you want a radio in your office, just call a service department and switch to speakerphone when they put you on hold. I don't have a radio in my office, and my computer doesn't have speakers. But my office has...
Mike Stall's .NET Debugging Blog
Use streams to simplify Stitching problems
Posted
over 8 years ago
by
Mike Stall - MSFT
1
Comments
Sometimes you need to take several different streams of information and "stitch" them together into a single stream. This sounds simple, but can be very meticulous because you need to deal with things like: * off-by-1 bugs and lots of corner cases * generally...
Mike Stall's .NET Debugging Blog
Writing a debugger in VB
Posted
over 8 years ago
by
Mike Stall - MSFT
1
Comments
Some might consider writing a managed debugger in VB.Net to be an oxymoron . But maybe not. Here's a VB.Net snippet that serves as a highly-specialized debugger to launch an app and print all the modules that get loaded. This is adapted from the C#...
Mike Stall's .NET Debugging Blog
What I'm reading now...
Posted
over 8 years ago
by
Mike Stall - MSFT
1
Comments
I'm currently reading: " Why Programs Fail ", by Andreas Zeller . The basic premise is that there's a science to Debugging, and you can build automated tools that actually help with the anaylsis in debugging - and he's not just talking about smarter breakpoints...
Mike Stall's .NET Debugging Blog
Only 1 checkin in 4 months?
Posted
over 8 years ago
by
Mike Stall - MSFT
4
Comments
I haven't actually checked in a code change to the CLR in months now. Yesterday I made my first change to the new product (CLR V3). Before that, I've only made one change since 7/15/05. That's 1 product change (it was on 8/26/05) in a 4 month window ...
Mike Stall's .NET Debugging Blog
Updated MDbg GUI
Posted
over 8 years ago
by
Mike Stall - MSFT
3
Comments
I've updated the MDbg GUI . We'll be integrating this into the actual MDbg sample and it will all be available in the MDbg download. Here's a list of what's improved. I'll certainly post when the download site gets updated. IL support 1) Added integrated...
Mike Stall's .NET Debugging Blog
Rules of Funceval
Posted
over 8 years ago
by
Mike Stall - MSFT
8
Comments
Funceval (aka "Function Evaluation" or "Property Evaluation") is the ability to inject some arbitrary call while the debuggee is stopped somewhere. A debugger commonly uses funceval to run ToString() and property getters. I want to describe when it is...
Mike Stall's .NET Debugging Blog
Presentation on AOP + Debuggability
Posted
over 8 years ago
by
Mike Stall - MSFT
1
Comments
Today I gave a presentation on AOP + debuggability on .NET as part of Microsoft's AOP workshop ( http://research.microsoft.com/workshops/aop/ ). The presentation is available online here (it's power point). The deck has some bonus slides that I didn't...
Mike Stall's .NET Debugging Blog
Why you sometimes get a bogus ContextSwitchDeadLock MDA under the debugger
Posted
over 8 years ago
by
Mike Stall - MSFT
1
Comments
The ContextSwitchDeadLock MDA (I blogged about MDAs here ) sometimes fires under the debugger. MSDN says: It is possible for this MDA to be falsely activated when all of the following conditions are met: * An application creates COM components from...
Mike Stall's .NET Debugging Blog
Managed Debug Assistants (MDAs) are cool.
Posted
over 8 years ago
by
Mike Stall - MSFT
10
Comments
Whidbey has has added Manage Debug Assistants (MDAs), which are like advanced log messages for diagnostic information. These things are awesome. There appears to be very little written about them. You can enable them in the VS exception dialog. You can...
Mike Stall's .NET Debugging Blog
AOP and Debuggability
Posted
over 8 years ago
by
Mike Stall - MSFT
0
Comments
I'll be giving a short presentation at an upcoming Microsoft workshop on Aspect Oriented Programming on .NET. More information about the workshop is here: http://research.microsoft.com/workshops/aop/ I don't know much about AOP, but I do know a thing...
Mike Stall's .NET Debugging Blog
MDbg Linkfest
Posted
over 8 years ago
by
Mike Stall - MSFT
11
Comments
MDbg is a debugger for managed code written entirely in C# (and IL), which started shipping in the CLR 2.0 SDK. I have so many MDbg posts, that I'm losing track of them. And others have had some good posts too. For my own organization, I need to create...
Mike Stall's .NET Debugging Blog
Summary of the role of MDbg and Cordbg
Posted
over 8 years ago
by
Mike Stall - MSFT
6
Comments
I want to summarize in one place our views on Mdbg and Cordbg, and our plans for their future. Our views on the different debuggers : Cordbg/Mdbg - In general, we've never viewed Cordbg or MDbg as ideal production quality debuggers. We view Cordbg...
Mike Stall's .NET Debugging Blog
New toys
Posted
over 8 years ago
by
Mike Stall - MSFT
8
Comments
My home computer was a 5 year old x86 single-proc 600 mhz. Stop laughing! It ran Windows XP, Visual Studio 2003, MS terminal-server client, Age of Empires II, and Civilization 3. It could not run Rise of Nations or most any 1st person shooter. Two...
Mike Stall's .NET Debugging Blog
Our policy on policy
Posted
over 8 years ago
by
Mike Stall - MSFT
0
Comments
... is that we don't want the platform making policy decisions. In general, any time the platform makes an arbitrary policy decision, half of our clients will think it's the wrong one. This why we're trying to shift our architecture focus to enabling...
Mike Stall's .NET Debugging Blog
Using Funceval to Inject code into another app
Posted
over 8 years ago
by
Mike Stall - MSFT
5
Comments
It's possible for a managed debugger to attach to an app and inject arbitrary stub code into the app, without any prior cooperation from the app. The more technical description is that while the debuggee is stopped, the debugger can load an arbitrary...
Mike Stall's .NET Debugging Blog
BCL's Stacktrace doesn't capture locals.
Posted
over 8 years ago
by
Mike Stall - MSFT
0
Comments
I blogged here about how you can use the System.Diagnostics.StackTrace class to get a stack trace of your current thread. However, you can't use this to get current locals. Ideally, we'd have a method like: Pair<string, object>[] StackFrame.GetLocals...
Mike Stall's .NET Debugging Blog
You can't debug yourself
Posted
over 8 years ago
by
Mike Stall - MSFT
4
Comments
You can't debug your own process. Both managed and native debugging are process-wide, and so the debugger would end up freezing itself. The problem is that a debuggee generates some debug event (perhaps hitting a breakpoint), and then stops until the...
Mike Stall's .NET Debugging Blog
MDbg extension to debug IL
Posted
over 8 years ago
by
Mike Stall - MSFT
14
Comments
I've updated the MDbg gui to provide IL debugging. I blogged here that the CLR actually lets you debug at the IL level (with some restrictions), but no debugger actually exposes this feature. People were skeptical, and now that we shipped whidbey, I've...
Mike Stall's .NET Debugging Blog
Small changes can prevent optimizations.
Posted
over 8 years ago
by
Mike Stall - MSFT
2
Comments
Here's an example where adding a very useful (and seemingly innocent) method could prevent some useful optimizations. The ILGenerator class provides a reasonably safe way to emit a stream of IL. It has a bunch of overloaded Emit methods that emit various...
Page 1 of 1 (23 items)