Debugging DSC Resources

Ravikanth Chaganti · Apress eBooks · 2018

In Chapter 7, you learned how to perform unit and integration tests of your custom DSC resources. Testing is a great way to ensure that the functionality that you intend to build is indeed available and not broken. You saw in Chapter 9 how DSC debug and analytics logs can help you retrieve more information about DSC operations. However, there may be bugs that get introduced because of an environmental configuration where the resource module is being used or could just be a test miss. In this case, you need to use the available debugging techniques to root-cause the bug and fix it. DSC as a platform offers a way to debug resource modules while the enact is in progress. In this chapter, you will learn how to debug DSC resource module issues. This is going to be a quick one but I really suggest that you practice the debugging technique that you will learn with not just the simple example in this chapter but with a module of your own too. Let's get started.

Read the paper · More papers on PaperTik