Skip to content

Commit

Permalink
netcore: doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLuje committed Aug 24, 2020
1 parent 81ca49a commit 2241743
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/content/en/docs/workflows/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,16 @@ In order to configure your application for debugging, your app must be:
- Identified as being dotnet-based by having an entrypoint using [dotnet](https://github.com/dotnet/sdk) cli or one of the following environment variables `ASPNETCORE_URLS`, `DOTNET_RUNNING_IN_CONTAINER`, `DOTNET_SYSTEM_GLOBALIZATION_INVARIANT`.
- Built with the `--configuration Debug` options to disable optimizations.

Note for users of [VS Code's debug adapter for C#](https://github.com/OmniSharp/omnisharp-vscode) : the following configuration can be used to debug a container. It assumes that your code is deployed in `/app` or `/src` folder in the container. If it is not the case, the `sourceFileMap` property should be changed to match the correct folder. `processId` is usually 1 but might be different if you have non-usual docker entrypoint. You can also use `"${command:pickRemoteProcess}"` instead if your base image supports it.

Remote launch configuration works in this case:
```json
{
"name": "Skaffold Debug",
"type": "coreclr",
"request": "attach",
"processId" : "${command:pickRemoteProcess}", // if your docker image doesn't contain `ps`, this command will fail... usually processId is 1
"justMyCode": true, //dotnet debug=true,dotner release=false
"processId" : 1,
"justMyCode": true, // set to `true` in debug configuration and `false` in release configuration
"pipeTransport": {
"pipeProgram": "kubectl",
"pipeArgs": [
Expand Down

0 comments on commit 2241743

Please sign in to comment.