Questions from the Field: Excluding Different Files or Directories on Debug and Release Builds

A customer asked me the other day about excluding different files (or directories) based on the type of build happening.  Specifically they wanted to exclude some files for Release builds and others for Debug builds.   Here is the general info on how to exclude files from builds: http://msdn.microsoft.com/en-us/library/ms171455(v=VS.110)   Within the article you will…


Set a Complex Breakpoint Condition

Menu:  [Right-Click the Breakpoint] -> ConditionVersions:  2008,2010Published:  5/4/2010Code:  vstipDebug0022     So, it turns out that the REAL power of the Breakpoint Condition dialog is the ability to execute any line of code from it.  You could do something really evil like reset a variable so you have an infinite loop:     Or you…

8

Set a Simple Breakpoint Condition

Menu:  [Right-Click the Breakpoint] -> ConditionVersions:  2008,2010Published:  5/3/2010Code:  vstipDebug0021        Did you know you can set Conditional Breakpoints?  They are arguably the most powerful among the types of Breakpoints you can set.  There are many layers to using them correctly and knowing is half the battle.   Let’s start with the Breakpoint Condition…

5