rubgra
rubgra

Reputation: 225

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

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?

Upvotes: 1

Views: 184

Answers (1)

rubgra
rubgra

Reputation: 225

  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

Upvotes: 2

Related Questions