aws / aws-extensions-for-dotnet-cli

Extensions to the dotnet CLI to simplify the process of building and publishing .NET Core applications to AWS services
Apache License 2.0
369 stars 86 forks source link

Fix issue #248 where excluding pdb files from publishing broke SAM debugging #250

Closed normj closed 1 year ago

normj commented 1 year ago

Issue #, if available: https://github.com/aws/aws-extensions-for-dotnet-cli/issues/248

Description of changes: As part of the recent Native AOT work we needed to exclude the native debug symbols from the deployment bundle to keep the deployment size small. The code was also excluding pdb files which are not produced as part of Native AOT compilation and by excluding them we broke users using the tooling for SAM debugging.

This PR restores pdb files being part of the deployment bundle to fix the regression in SAM debugging. In a future release we might want to add a setting to opt into excluding pdb files.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.