Home > Net >  Is there a way to debug binary PowerShell Modules with VS Code?
Is there a way to debug binary PowerShell Modules with VS Code?

Time:02-06

I have written some PowerShell Modules in C#. I know how to debug them in Visual Studio. (With stepping through etc.) Is there a way to debug C# PowerShell Modules in Visual Studio Code?

CodePudding user response:

  1. In the debug tab select "Generate C# Assets for Build and Debug"
  2. List item
  1. Set breakpoint
  2. Start debug and choose the pswh console process
  3. Import module and use cmdlet
  • Related