MSBuild Debuggers!

It looks like I’m not the only one who wanted a debugger for MSBuild projects. When the MSBuild team asked everyone to spend $100 to prioritize features, the runaway winner was a debugger. Reading the comments to my original post (as well as the MSBuild team’s posts), Partho Das from Microsoft has released a Visual Debugger for MSBuild projects! It’s an alpha, but was more than enough for me to single step through all my complicated MSBuild scripts. The following screen shot shows the UI on a loaded project and I’ve set a breakpoint on my All target.

One quick hint when you start debugging a project is that the Choose Target for Debugging dialog that pops up is not just limited to the three default target and you can enter any target name you want.

As you can see in the screen shot, there’s support for call stacks, property viewing, and item viewing. This is a really great start to something we could all really use. Partho has set out what he’s doing for version two and will be releasing the source code soon.

Being the curious type, I just had to look at how MSBUILDDEBUGGER.EXE is doing its magic with Reflector. It’s amazing what you can do by hosting the build engine and applying a logger.

Speaking of MSBuild feature requests, I need to mention that Attrice has a very interesting tool in their MSBuild Sidekick. While it only supports Visual Studio 2005 and .NET 2.0 projects right now, there are many things that look quite interesting and address numerous of the features people voted for. For example, the Targets Diagram view shows the relationships between your tasks. The easy project editing also looks very enticing as manually editing custom MSBuild project files gets very old very quickly. Eugene Zakhareyev has tentatively promised to add MSBuild 3.5 projects support and “some level of step-through debugging.”I’m starting to play around with MSBuild Sidekick and will report how it goes.

While the MSBuild team got the message about an MSBuild debugger, it looks like the community was already out there trying to solve the problem. That’s a huge win for everyone!

John Robbins

View Comments

Recent Posts

How to Navigate Azure Governance

 Cloud management is difficult to do manually, especially if you work with multiple cloud…

5 days ago

Why Azure’s Scalability is Your Key to Business Growth & Efficiency

Azure’s scalable infrastructure is often cited as one of the primary reasons why it's the…

3 weeks ago

Unlocking the Power of AI in your Software Development Life Cycle (SDLC)

https://www.youtube.com/watch?v=wDzCN0d8SeA Watch our "Unlocking the Power of AI in your Software Development Life Cycle (SDLC)"…

1 month ago

The Role of FinOps in Accelerating Business Innovation

FinOps is a strategic approach to managing cloud costs. It combines financial management best practices…

1 month ago

Azure Kubernetes Security Best Practices

Using Kubernetes with Azure combines the power of Kubernetes container orchestration and the cloud capabilities…

2 months ago

Mastering Compliance: The Definitive Guide to Managed Compliance Services

In the intricate landscape of modern business, compliance is both a cornerstone of operational integrity…

2 months ago