Summary
This chapter has focused on things that you can do when running the program, including traditional debugging in both the ISE and the console. We spent some time looking at error messages and how to make them more readable in order to help us take the time to look carefully at all of the information contained in them. We also looked at a couple of issues involving large input sets, namely, how to more easily debug a process by reducing the input and also how to alleviate memory issues with large file input by effectively using the pipeline.
In the next chapter, we will explore some things to look out for in your code that might indicate an opportunity to clean the code up in some way. Some of these red flags, known as code smells, are common among programming languages, but some are very specific to PowerShell code.