Debugging through lambda test tool works in Rider 2021, but not in 2022 #1180
-
Describe the bugI use following launch settings profile for debugging lambda handlers using lambda test tool:
Expected BehaviorDebugging session started as expected Current BehaviorFails to start debugging session Reproduction StepsWhen I execute this profile in Rider 2021.3.4, it works as expected.
It seems something changed between Rider major versions. Can you troubleshoot this problem please? Possible SolutionNo response Additional Information/ContextNo response AWS .NET SDK and/or Package version usedSDK version is Lambda Test Tool Targeted .NET Platform.NET Core 3.1 Operating System and versionWindows 10 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
@pmihalcin Unfortunately I'm unable to reproduce the issue using JetBrains Rider version |
Beta Was this translation helpful? Give feedback.
-
I've had the same issue as well. The Lambda Test Tool worked well with Rider 2022.1.1 until I installed the .net6 SDK (dotnet-sdk-6.0.300-win-x64). After that, running the Lambda Test Tool from Rider started to give me this error. With Rider 2022.1.1 (tested as well with Rider 2022.1 and same error) and Lambda Test Tool 3.1 version 0.11.3 I was getting the "Could not load file or assembly 'System.Runtime, Version=4.2.2.0..." error. If I ran the Lambda Test tool with the exe from Powershell, it worked, but that would not allow debugging from Rider, since it was launching it from Powershell. Going back to Rider 2021.3.4 fixed it for me, which is admittedly not a great solution. |
Beta Was this translation helpful? Give feedback.
-
I've managed to fix the issue. In my case the problem was because I was using unproper launch config type. It must be .NET Executable in Rider |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@pmihalcin Unfortunately I'm unable to reproduce the issue using JetBrains Rider version
2022.1.1
and Lambda Test Tool version0.12.2
. My Exe path in Rider run configuration is set to<<user-profile-directory>>/.dotnet/tools/.store/amazon.lambda.testtool-3.1/0.12.2/amazon.lambda.testtool-3.1/0.12.2/tools/netcoreapp3.1/any/Amazon.Lambda.TestTool.BlazorTester.dll
and working directory as root of Lambda project (as per instructions at https://github.com/aws/aws-lambda-dotnet/tree/master/Tools/LambdaTestTool#configure-for-jetbrains-rider). Please try upgrading to latest version of test tool.