I am using cdb.exe to debug a service remotely. To ease this, I've been trying to use a powershell remoting session to do the work. However, I am running into behavior I don't understand.
This works
- new-pssession | enter-pssession
- (in the interactive session) cdb.exe -server "npipe:pipe=debug" -p ###
- (in another local powershell or cmd) cdb.exe -remote "npipe:pipe=debug,server=server"
With that, I control the session remotely from my local cdb. I also see the entire session remotely in the connected remote powershell. That leads me to think ... for a quick session, why not remove the need for that second local window, and just use cdb from the remote session.
Except, I can't get that to work.
This doesn't work
- new-pssession | enter-pssesion
- (in the interactive session) cdb.exe -p ###
The moment cdb reaches a point whre it prompts, powershell exits cdb and gives me the powershell prompt.
Is this a setting I can change?
Is this just something w/ how powershell remoting and WinRM work?
Seems odd that I can watch this entire session live in the remote window, but there is no way to interact with the same.