Browse by Tags

Tagged Content List
  • Blog Post: CLR Security Team CodePlex Site

    The CLR Security Team just launched our CodePlex site: http://www.codeplex.com/clrsecurity .  Currently, it contains two assemblies that provide additional functionality to the security APIs shipped in v3.5 of the .NET Framework. We'd love your feedback on the currently offered libraries, and also...
  • Blog Post: FxCop Transparency Rules

    The FxCop team has just announced the availability of RC 1 of FxCop 1.35 . Notable in this release is the introduction of the first three rules around security transparency . Namely, you'll see: SecurityTransparentAssembliesShouldNotContainSecurityCriticalCode - fires when an assembly which is...
  • Blog Post: Debugging a Partial Trust ClickOnce Application

    Although the theory is that by the time we deploy a finished application it's already fully debugged we all know that in practice things rarely go that smoothly. So what happens if you deploy a partial trust ClickOnce application that starts to crash when it's run? Well, if you're lucky enough to have...
  • Blog Post: Debugging ADMHost

    A few people have noticed that the ADMHost sample is not set up to do mixed mode debugging by default. If you're working with this sample and you'd like to debug through both halves of the host, you'll need to enable this mode. Right click on the ADMHost project and open the properties window ...
  • Blog Post: Finding the Source Code for an Assembly

    Sometimes, especially when working on large projects (such as, I don't know, say ... the CLR), you find yourself debugging a problem where you don't know where a component is built from. Depending on the problem, it might be useful to get to the sources of the assembly to help diagnose what the issue...
  • Blog Post: Debugging Lightweight CodeGen in VS

    Haibo just posted about his debugger visualizer for dynamic methods . This is a pretty sweet piece of code for anyone who uses lightweight code generation and needs to debug the code they've emitted. Basically it adds a visualizer to DynamicMethod objects that enables you to dump out the IL of that method...
  • Blog Post: IronPython + MDbg = good times

    Mike Stall recently completed a project to embed IronPython into the MDbg debugger as an MDbg extension. IronPython's hosting interface is pretty slick, in fact it took Mike only 10 steps to get IronPython running inside MDbg and expose the debugger functionality to Python scripts via a variable named...
  • Blog Post: Viewing IL at Debug Time

    Last week, I mentioned Yiru’s post on using SOS to see the IL of a dynamically generated method. Yiru’s post is about lightweight code gen, but the technique she shows is useful for more general purpose managed debugging . Let’s work through debugging a program that’s supposed...
  • Blog Post: Yiru on Debugging LCG

    Yiru's got a great piece up on using SOS to debug code that was emitted using Whidbey's new Lightweight CodeGen feature. Debugging any code written at the IL level can be tricky for anyone who doesn't have Partition III of ECMA committed to mind. LCG makes it even more fun since the code is generated...
  • Blog Post: Whidbey's Security Off Model

    Although the v1.0 and v1.1 versions of CasPol provided a switch to disable the CLR's security system, running without CAS enforcement on was never a scenario that we encouraged for obvious reasons. The choice to disable security was a system wide switch that affected any managed application on any version...
  • Blog Post: Mike Stall on Finding the Real Exception Call stack

    Mike's got an interesting piece up today about using WinDbg to find the actual call stack of an unmanaged (or managed for that matter) exception . It's this kind of power debugging technique that makes WinDbg my all time favorite debugger.
  • Blog Post: Mike Stall's (Relatively)New Debugger Blog

    Mike Stall is one of the devs on our base services team, and his focus is on managed debugging. I played football with Mike 4 flag football seasons back, but generally don't need to work directly with him since the debugger and security don't have very much interaction. However, Mike is always the guy...
  • Blog Post: Finding Out The Current User in the Debugger

    Every once in a while, while debugging multi-threaded applications that do impersonation, it becomes useful to figure out the context that the current thread is running under. This is especially useful when debugging server scenarios where connections are farmed out to worker threads which begin their...
  • Blog Post: Whidbey's New SecurityException

    One of the more difficult things to debug with .NET 1.0 and 1.1 is the security exception. With these frameworks generally the only information that you got was the state of the failed permission. Due to the complexity of debugging security problems, most people just gave up and required that their code...
  • Blog Post: What Happens When My Application Throws An Unhandled Exception

    There are several different behaviors that can occur when a managed application throws an unhandled exception. The two most common are to bring up an error dialog box, or to pop up the Visual Studio Just In Time Debugger dialog box. The first behavior is the default when you install the CLR, but don...
  • Blog Post: New Debugger Features for Whidbey

    Andy blogs about the new features in the Visual Studio 2005 debugger. Of all these, tracepoints seems the most exciting to me, although life will be made much easier with visualizers and the STL data display.
  • Blog Post: WinDbg 6.3.17 Released

    The debugging team has just released the Debugging Tools for Windows version 6.3.17. There are several new improvements in this release, the most obvious of which is the new UI enhancements which allows you to dock windows, window tabs, and tear window off. A more complete changelist is also on their...
  • Blog Post: Arrays and SOS

    Looking at arrays with SOS on WinDBG is not exactly the most intuitive process in the world. In order to demonstrate how to do this, I've written a small sample program that I'm going to “debug”. The code simply creates three arrays: string [] strs = new string [] { "String 1", "String...
  • Blog Post: Debugging the Debugger

    Min Kwan Park's blog was making the rounds of the various Microsoft blogs yesterday, but I thought I'd also post a link for anyone who missed it (and also so I can find it again easily in the future). He's posted a helpful checklist of things to try if you can't make the VS.Net debugger work properly...
  • Blog Post: Debugging Unmanaged Code Calling Back Into Managed

    One of the guys I work with spent a good part of his day tracking down a tricky problem with some code he had written. The mistake he made is relatively common, so I thought I'd share it here. The application he had written was managed. He made a delegate to a static managed method, and passed that...
Page 1 of 1 (20 items)