O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Error Handling and Debugging

The first steps in any programming environment usually involve doing the classic "Hello, world" example, first introduced some time in the 1970s and now a time-honored tradition. This chapter might well start with a "Hello, cruel world" example, as it will deal with a lot of pain. Here is the place where we take the red pill and enter the real world of programs crashing and misbehaving. To make things even more exciting, let's assume we are placed right in the middle of a production environment and everyone expects us to get things working.

No script or program is guaranteed problem-free execution. Anything can go wrong, and we have to be ready for that. In this chapter, you will learn how to handle errors ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required