Debug C# dll when loaded into powershell's process? Is it even possible? Debug C# dll when loaded into powershell's process? Is it even possible? powershell powershell

Debug C# dll when loaded into powershell's process? Is it even possible?


As an alternative, you could create an helper class in your library:

namespace Something {    public static class DebugHelper {        public static void AttachDebugger() {            System.Diagnostics.Debugger.Launch();        }    }}

Then, you can call that method from PowerShell, and you will get the debugger attached.