Just-in-time (JIT) Debugger window not showing up
If I create simple .NET Console application it works,
but if it's a windows service it's not showing up.
Version:
JetBrains Rider 2022.3
Build #RD-223.7571.232, built on December 5, 2022
I noticed that there is no MainWindow event in logs in this case.
How logs should looks:
13:21:20.197 |I| JITDebuggerMain | :1 | Initializing Rider JIT Debugger, version 3000.0.0.14
13:21:20.209 |I| JITDebuggerMain | :1 | Arguments: C:\Users\User1\AppData\Local\JetBrains\Rider\JITDebugger\RiderJITDebuggerLauncher64.exe, -p, 25964, -e, 392, -s, 00007FF923BCEFC0
13:21:20.277 |I| ProcessPaths | :1 | Trying to get executable path for process with id 25964
13:21:20.293 |I| ProcessPaths | :1 | Trying to get executable path for process TestApp1.WinService with id 25964
13:21:20.295 |I| ProcessPaths | :1 | Looking for a executable path of process 25964 using ManagementObjectSearcher
13:21:20.395 |I| ProcessPaths | :1 | Raw command line value: "C:\Source\TestApp1.WinService.exe"
13:21:20.397 |I| ProcessPaths | :1 | Executable path is C:\Source\TestApp1.WinService.exe, is absolute = True, exists = True
13:21:20.583 |I| RiderSearchTools | :1 | Processing possible root dir C:/Work/dotnet-products
13:21:20.584 |I| RiderSearchTools | :1 | Possible root dir is not valid, skipping
13:21:20.584 |I| RiderSearchTools | :1 | Processing possible root dir D:/Work/dotnet-products
13:21:20.584 |I| RiderSearchTools | :1 | Possible root dir is not valid, skipping
13:21:20.587 |I| RiderSearchTools | :1 | Calculating Rider solutions
13:21:20.592 |I| RiderSearchTools | :1 | Found Rider process, pid = 36028
13:21:20.592 |I| ProcessPaths | :1 | Trying to get executable path for process rider64 with id 36028
13:21:20.592 |I| ProcessPaths | :1 | Looking for a executable path of process 36028 using ManagementObjectSearcher
13:21:20.671 |I| ProcessPaths | :1 | Raw command line value: "C:\Program Files\JetBrains\JetBrains Rider 2022.3\bin\rider64.exe"
13:21:20.672 |I| ProcessPaths | :1 | Executable path is C:\Program Files\JetBrains\JetBrains Rider 2022.3\bin\rider64.exe, is absolute = True, exists = True
13:21:20.672 |I| RiderSearchTools | :1 | Process executable: C:\Program Files\JetBrains\JetBrains Rider 2022.3\bin\rider64.exe
13:23:29.841 |I| MainWindow | :1 | Trying to verify preferred debugger support
13:23:29.841 |I| MainWindow | :1 | Rider entity version: 223.7571.232
13:23:29.841 |I| MainWindow | :1 | Baseline version is 223
How it looks:
12:17:48.848 |I| JITDebuggerMain | :1 | Initializing Rider JIT Debugger, version 3000.0.0.14
12:17:48.894 |I| JITDebuggerMain | :1 | Arguments: C:\Users\User1\AppData\Local\JetBrains\Rider\JITDebugger\RiderJITDebuggerLauncher64.exe, -p, 25964, -e, 392, -s, 00007FF923BCEFC0
12:17:48.949 |I| ProcessPaths | :1 | Trying to get executable path for process with id 25964
12:17:49.064 |I| ProcessPaths | :1 | Trying to get executable path for process TestApp1.WinService with id 25964
12:17:49.069 |I| ProcessPaths | :1 | Looking for a executable path of process 25964 using ManagementObjectSearcher
12:17:49.433 |I| ProcessPaths | :1 | Raw command line value: "C:\Source\TestApp1.WinService.exe"
12:17:49.437 |I| ProcessPaths | :1 | Executable path is C:\Source\TestApp1.WinService.exe, is absolute = True, exists = True
12:17:49.967 |I| RiderSearchTools | :1 | Processing possible root dir C:/Work/dotnet-products
12:17:49.969 |I| RiderSearchTools | :1 | Possible root dir is not valid, skipping
12:17:49.969 |I| RiderSearchTools | :1 | Processing possible root dir D:/Work/dotnet-products
12:17:49.969 |I| RiderSearchTools | :1 | Possible root dir is not valid, skipping
12:17:49.974 |I| RiderSearchTools | :1 | Calculating Rider solutions
12:17:49.981 |I| RiderSearchTools | :1 | Found Rider process, pid = 36028
12:17:49.981 |I| ProcessPaths | :1 | Trying to get executable path for process rider64 with id 36028
12:17:49.981 |I| ProcessPaths | :1 | Looking for a executable path of process 36028 using ManagementObjectSearcher
12:17:50.274 |I| ProcessPaths | :1 | Raw command line value: "C:\Program Files\JetBrains\JetBrains Rider 2022.3\bin\rider64.exe"
12:17:50.275 |I| ProcessPaths | :1 | Executable path is C:\Program Files\JetBrains\JetBrains Rider 2022.3\bin\rider64.exe, is absolute = True, exists = True
12:17:50.275 |I| RiderSearchTools | :1 | Process executable: C:\Program Files\JetBrains\JetBrains Rider 2022.3\bin\rider64.exe
Workaround:
Wait until the new log file appears, then run this PowerShell command, with parameters from the log file:
.\RiderJITDebuggerLauncher64.exe -p 25964 -e 392 -s 00007FF923BCEFC0
Please sign in to leave a comment.
Hi Alexey Marinyak!
Thank you for the workaround!
Unfortunately, this is a known issue. Feel free to follow it for updates and leave comments there.
Should you have any other questions, let us know. Have a great day!