— New online course!  Azure App Services & App Service Security with ASP.NET Core — Special launch price 50% off —

Enable Verbose Debug Mode for TFS Build vNext


Here’s a “hidden in plain sight” quick tip: how to turn on verbose debugging mode for your Team Foundation Server vNext Build.

The short answer is that you need to set the ‘system.debug’ variable to true for your build.  You can set this to true for a single instance of the build or you can change it so that it runs in debug/verbose mode for every build.

For a single build, you can turn on debug mode from the Queue Build dialog.  This will set it to debug/verbose *just* for the build that you’re queuing.

Set system.debug to true on the Queue Build dialog

But let’s say that this is going to be a continuous integration build or a scheduled build and that you want to run all instances of this build in debug mode.  In the case of these automatically triggered builds, you’ll need to edit the variables for the build definition.  Open the build definition and click on the Variables tab.  Then set system.debug to true and save the build definition.  Now each instance of the build will run in debug/verbose mode.

Edit the default value for system.debug in the Variables section of the build definition



— Looking for help with your automated builds?  Need some guidance on doing DevOps with Team Foundation Server?  We can help.  Drop us a line at info@benday.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: