Pages

Thursday, December 23, 2010

Debugging C# Object Initializers, Properties or Operators

When debugging C# in Visual Studio 2008, properties and operators are not debugged by default. To debug properties and operators:

Menu: Tools > Options >> Debugging >> General

Make sure "Step over properties and operators (Managed only)" is unchecked




Also, you can customize a toolbar so that you can easily toggle this option before debugging:




References:
  1. linq - Debugging a C# Object Initializer - Stack Overflow

No comments:

Post a Comment