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?
-
1Since Visual Studio Code supports C# projects, you can also debug C# projects that happen to be PowerShell modules (source code of binary cmdlets).mklement0– mklement02023-02-03 13:36:51 +00:00Commented Feb 3, 2023 at 13:36
-
But how? Binary Modules are just class libraries. I need a powershell script that calls this library but i don't know how to attach the process so that the breakpoint in the C# code will be hit.rubgra– rubgra2023-02-03 13:44:51 +00:00Commented Feb 3, 2023 at 13:44
Add a comment
|
