Skip to content

Commit dba7e97

Browse files
committed
Add PID to initial log output
This change writes out the host process ID when the process starts up so that it's easier to determine which process to attach a debugger to.
1 parent bf485ff commit dba7e97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/PowerShellEditorServices.Host/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ static void Main(string[] args)
103103
Logger.Write(
104104
LogLevel.Normal,
105105
string.Format(
106-
"PowerShell Editor Services Host v{0} starting...",
107-
fileVersionInfo.FileVersion));
106+
"PowerShell Editor Services Host v{0} starting (pid {1})...",
107+
fileVersionInfo.FileVersion,
108+
Process.GetCurrentProcess().Id));
108109

109110
// Start the server
110111
server.Start().Wait();

0 commit comments

Comments
 (0)