Skip to content

Commit

Permalink
Add pointer for .NET debugging in CC-IJ Rider (#5924)
Browse files Browse the repository at this point in the history
  • Loading branch information
briandealwis authored Jun 1, 2021
1 parent e8803ad commit f477f48
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/content/en/docs/workflows/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ a debug launcher that examines the app command-line.

#### .NET Core (runtime: `dotnet`, protocols: `vsdbg`)

.NET Core applications are configured to be deployed along with `vsdbg`.
.NET Core applications are configured to be deployed along with `vsdbg`
for VS Code.


.NET Core application are recognized by:
- the presence of a standard .NET environment variable:
Expand All @@ -237,7 +239,14 @@ a debug launcher that examines the app command-line.

Furthermore, your app must be 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):**

{{< alert title="JetBrains Rider" >}}
This set up does not yet work automatically with [Cloud Code for IntelliJ in JetBrains Rider](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues/2903).
There is [a manual workaround](https://github.com/GoogleCloudPlatform/cloud-code-intellij/wiki/Manual-set-up-for-remote-debugging-in-Rider).
{{< /alert >}}

{{< alert title="Omnisharp for VS Code" >}}
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 that 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
Expand Down Expand Up @@ -272,6 +281,7 @@ your base image. (`//` comments must be stripped.)
}
}
```
{{< /alert >}}

## Troubleshooting

Expand Down

0 comments on commit f477f48

Please sign in to comment.