microsoft/poshtools

Debugging C# Cmdlet: stuck in script-debugger

afsandeberg opened this issue · 0 comments

Perhaps there is a simple fix for this and I'm missing something.

But when I develop cmdlets in C# in Visual Studio and wants to run the "normal" c# debugger I cant.
I get stuck in the PowerShell script debugger, most of the time in the PSReadLine.psm1 file, and there is no way of getting in to the C# code in the debugger (Visual Studio hangs/is really busy).

This doesn't happens all of the time from the beginning, but inevitability after awhile I get the problem and the only solution i found is to uninstall the PowerShell tools (which makes editing PowerShell scripts a rather dull experience).