Implement RFC0005: Compile applications for remote debugging
Closed this issue · 0 comments
thitch97 commented
Context
RFC 0005 outlines a plan for enabling Remote Debug support in the Paketo Buildpack for .NET Core. The implementation requires that .NET Core applications are compiled in a way that ensures debug support.
Required Changes
The dotnet-publish
buildpack currently runs the following command in its build process:
dotnet publish \
--configuration Release \
--runtime ubuntu.18.04-x64 \
--self-contained false \
--output <output-path>
When the BP_DEBUG_ENABLED
environment variable is set to true
, the buildpack will set the --configuration
flag to Debug
to ensure debug support is built into the compiled application.
Criteria for Acceptance
When the BP_DEBUG_ENABLED
environment variable is set to true
:
- I should see in the build output that
dotnet publish
is run with--configuration Debug
and NOT--configuration Release
.