Skip to content

Debug IConfiguration #2182

@natanaelfiorilla

Description

@natanaelfiorilla

Hey guys,

I am trying to debug my lambda using the lambda mock test tool for dotnet 8. Using it in rider, it was a bit of a hassle to setup, but it works now. But while debugging the application I started to notice that I can't watch my IConfiguration, it does get values out of the IConfiguration, which in turn it loads from the parameter store in AWS. So it does get the values, but I can't look into the object, it is giving me a ArrayTypeMismatchException when trying to fold open the IConfiguration during debugging. Even when just constructing the IConfiguration myself, before we load anything from the parameter store into it, it gives that exception. But when I run a console app without the lambda mock test tool, I can debug the IConfiguration just fine. So my gut feeling says it has something to do with the lambda mock test tool, can anyone confirm? Or does anyone have a work around for it? I am really starting to dislike AWS and its lambda's because it is so a hassle to debug and setup....

Picture of debugger for clarity:
image

Originally posted by @DennisJansenDev in #1841

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-reproductionThis issue needs reproduction.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions