Chapter 5. Debugging and Pre-Processing

In This Chapter

  • Pre-Processing Directives

  • Debugging C# Programs

This chapter shows the C# pre-processing directives. Pre-processing, as the name suggests, occurs before a program is actually compiled. It provides the ability to manage the development environment through conditional compilation of source code.

This chapter also covers how to debug C# programs. It introduces plausible bugs into a program that would reasonably require use of a debugger. Effective debugging strategies that are sure to prevent headaches and promote better use of time also are discussed.

Get C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.