I am writing a debugger extension and is looking for a way to get user input from the debugger extension after the extension has started executing.
I am hosting PowerShell in a debugger extension and try to implement support for Read-Host which requires input from the user.
In the debugger I can for example write a script in PSExt_profile.ps1:
function Foo{
Read-Host -Prompt "Enter your address"
}
and on the debugger command line:
!ps Foo
That will invoke PowerShell which runs the Read-Host command.
I don't understand how I can ask the get input from WinDbg from the extension. In cdb I can use the console functions.
Is there a generic way do handle this that is agnostic of the debugger that is loading the extension?