You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Either need to set $DebugPreference = "Continue" at the beginning of script; OR
Include -Debug parameter while executing Write-Debug (e.g. Write-Debug "Testing Lambda PowerShell Write-Debug" -Debug)
Also set environment variable AWS_LAMBDA_HANDLER_LOG_LEVEL with value DEBUG (refer blog post Introducing the .NET 6 runtime for AWS Lambda). This will enable Debug logs at Lambda level.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
We already have internal case and ticket V1078993289 for this, but creating this so others can track a fix publicly.
Expected Behavior
"Write-Debug" should print to CloudWatch messages when adding -Debug parameter or using $DebugPreference to get the message displayed on console.
Current Behavior
Messages aren't logged.
Possible Solution
This probably is happening because "Write-Debug" isn't included in these events https://github.com/aws/aws-lambda-dotnet/blob/master/Libraries/src/Amazon.Lambda.PowerShellHost/PowerShellFunctionHost.cs#L294
The text was updated successfully, but these errors were encountered: