Welcome to MSDN Blogs Sign in | Join | Help

Visual Debugger for MSBuild Projects

Folks, Hi!

A recent feature poll on the MSBuild blog seems to indicate that a debugger for MSBuild projects is the #1 vNext request from you. Lot of other folks (such as here and here) have explicitly blogged about this requirement.

Over the last week I put together a Visual Debugger for MSBuild Projects. The v1 alpha feature list looks like:

v1 Feature Set:

  • Load project and arbitrary target files
  • Set/View build environment
  • Step-Into tasks and targets (F11), Run (F5), Break execution, Step into imported projects, step into CallTarget & MSBuild tasks, task & target batching
  • Set breakpoints on tasks and targets, delete/view breakpoints, locate breakpoints in code
  • View call stacks (esp. useful for stepping into CallTargets & MSBuild tasks), locate stack frame in code
  • View debugger messages, MSBuild traces in Output window
  • RO View of evaluated Items and Properties in break mode
  • Handles out-of-box VS2008 projects and complex Microsoft's Developer Divisions's MSBuild based builds
  • Requires only .NET Framework 3.5 RTM (no VS2008 required)

I have also uploaded the binaries and how-to-get-started instructions on http://www.codeplex.com/msbdbg.

Please head over there to give this a spin. I have also listed there the known issues, the v2 plans, and other details there.

I am looking forward to listening to you on the right, wrong, the good, bad, the ugly and anything else that you will care to tell me about.

I am hoping this will go some distance it helping everyone get away from printf debugging and get into full fledged debugging for MSBuild projects. Esp. considering MSBuild projects files are no longer used only for builds. (Why, my wife has even filed a patent for using MSBuild as a test harness)

Here are a few screen shots:

MSBuild Debugger Saying 'hello'...

opendbg  

Set Breakpoint and Select Target to Debug...
setbpandselecttargettodebug
Breakpoint Hit and Output Window...
bphitandoutputwindow
Break at Arbitrary Location, See Call Stack and Properties...
breakNcallstackNproperties
Step-In, See Items and Active Breakpoints...

stepinNitemsNbreakpoints

Published Saturday, December 01, 2007 6:16 AM by parthopdas

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Visual Debugger for MSBuild Projects

Saturday, December 01, 2007 9:43 AM by Noticias externas

Folks, Hi! A recent feature poll on the MSBuild blog seems to indicate that a debugger for MSBuild projects

# Debugging для MSBuild

Sunday, December 02, 2007 8:04 AM by Mike Chaliy's Blog

Сьогодні продивлявся новини, і ось Visual Debugger for MSBuild Projects , ввечері потрібно буде подивитись

# More tools...

Monday, December 03, 2007 1:13 PM by MSBuild Team Blog

Two new MSBuild community tools to check out! Eugene from Attrice has blogged about the Visualization

# More tools...

Monday, December 03, 2007 1:48 PM by Noticias externas

Two new MSBuild community tools to check out! Eugene from Attrice has blogged about the Visualization

# re: Visual Debugger for MSBuild Projects

Monday, December 03, 2007 5:01 PM by Michael

Awesome stuff, thanks! Next time I'm dealing with some msbuild stuff I'll definately install this.

# Most Wanted: Debugging For MSBuild

Tuesday, December 04, 2007 4:25 PM by Maor David

I posted few weeks ago about the feature poll of MSBuild team on the MSBuild blog . Here are the results

# VSTS Links - 12/05/2007

Wednesday, December 05, 2007 7:00 AM by Team System News

The Visual Studio Team System User Education Blog on New End to End Articles for Visual Studio Team System...

# MSBuild Sidekick v2 Q&A session

Wednesday, December 19, 2007 2:44 AM by Team Foundation Sidekicks

With the release of MSBuild Sidekick v2 , several questions have been asked repeatedly. But what is the

# Smarter Logging with MSBuild

Thursday, January 17, 2008 11:25 AM by John Robbins' Blog

MSBuild has made my life so much easier that it makes me shudder thinking back to the days of NMAKE.

# Visual Debugger for MsBuild

Tuesday, March 25, 2008 11:05 PM by ascend slowly, breathing normally

Are you looking for a visual debugger for MsBuild? It seems like lots of folks are. Looking at the results

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker