Skip to content

Commit

Permalink
OnBoarding debug dotnet (#2467)
Browse files Browse the repository at this point in the history
* OnBoarding debug dotnet
* disable debug when we build dotnet app
  • Loading branch information
robertomonteromiguel authored May 21, 2024
1 parent 002dc22 commit 441085e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sudo chmod -R 755 *

echo "START RUN APP (debug active)"
#If we are trying to inject the library on the "restore" or "build" command we should show the traces
export DD_APM_INSTRUMENTATION_DEBUG=TRUE
export DD_APM_INSTRUMENTATION_DEBUG=false
export DOTNET_DbgEnableMiniDump=1
export DOTNET_DbgMiniDumpType=4
export DOTNET_CreateDumpDiagnostics=1
Expand All @@ -17,7 +17,7 @@ dotnet restore
dotnet build -c Release
sudo dotnet publish -c Release -o /home/datadog/publish


export DD_APM_INSTRUMENTATION_DEBUG=true
sudo cp test-app.service /etc/systemd/system/test-app.service
sudo systemctl daemon-reload
sudo systemctl enable test-app.service
Expand Down

0 comments on commit 441085e

Please sign in to comment.