As you know Visual Studio’s Immediate Window is very limited. You cannot even use loops there.
I am just curious is this possible to integrate PowerShell into Immediate Window? It will make debugging a lot-lot easier.
We will have loops, lambdas etc…
I’ve thought about PowerConsole but this is not integrated with debugger.
Any ideas?
Have you tried PowerConsole for this? I haven’t used it lately but I know you can access Visual Studio’s DTE object and from there you should be able to grab the Debugger interface e.g.
$dte.Debugger.I was just checking out the PowerConsole project site to see if there was a version for VS 2012. The project owner claims that the NuGet Package Manager Console was a fork of PowerConsole. And sure enough, this does from the Package Manager Console. I just tried it: