How do I debug DSC + VSCode

Welcome Forums DSC (Desired State Configuration) How do I debug DSC + VSCode

This topic contains 0 replies, has 1 voice, and was last updated by  GS 9 months ago.

  • Author
    Posts
  • #93730
    GS

    Participant
    Points: 1
    Rank: Member

    Hello,

    I have class based DSC resource, how do I effectively debug resource? I understand I'm supposed to instantiate a class directly but not sure how VSCode will know about class existence since it's in separate PSM1 file. So when I use $myObject = [MyClass]:new() it errors out with

    Unable to find type [MyClass]

The topic ‘How do I debug DSC + VSCode’ is closed to new replies.