dotnet/runtime in Rider
Hi, I would like to debug dotnet/runtime tests with JetBrains.
I've seen that they have https://github.com/dotnet/runtime/blob/main/docs/workflow/testing/visualstudio.md in order to make Visual Studio work.
Can you, please, advise on how to make it work with Rider?
I am specially interested in tests residing in libraries/System.Net.Http/tests/FunctionalTests
Please sign in to leave a comment.
I was able to get to the following in vscode without much success...
maybe that can help out to give me some direction using rider...
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "System.Net.Http.Funcional.Tests",
"type": "coreclr",
"request": "launch",
"program": "${workspaceFolder}/artifacts/bin/testhost/net7.0-Linux-Release-x64/dotnet",
"args": [ "exec", "--runtimeconfig", "System.Net.Http.Functional.Tests.runtimeconfig.json", "xunit.console.dll", "System.Net.Http.Functional.Tests.dll", "-method", "System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Asynchrony_Test.ExecutionContext_HttpConnectionLifetimeDoesntKeepContextAlive"],
"cwd": "${workspaceFolder}/artifacts/bin/System.Net.Http.Functional.Tests/Debug/net7.0-linux",
"console": "internalConsole",
"stopAtEntry": false
}
]
}
Hi Lomaisdoro!
There is no manual on how to do this in Rider for now. However, here is a feature request: RIDER-75444. Once it will be implemented, you can easily use a custom runtime when running a .NET application.
I hope this helps!