Skip to content

Commit

Permalink
feat: dotnet embedded sources
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Jan 30, 2023
1 parent 70db366 commit 53d7095
Showing 1 changed file with 26 additions and 19 deletions.
45 changes: 26 additions & 19 deletions src/platforms/common/data-management/debug-files/source-context.mdx
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
---
title: Source Context
sidebar_order: 5
description: "Learn about setting up source bundles to show source code in stack traces on the Issue Details page."
---

If Sentry has access to application source code, it can show snippets of code
around the location of stack frames. Certain SDKs can resolve this source
context automatically, such as the Python SDK, because they have access to
unobfuscated source code at runtime.

To get source context for native applications, source code needs to be uploaded
alongside the debug information files. The recommended way to do this is by
using `sentry-cli`. See [Creating Source Bundles](/product/cli/dif/#creating-source-bundles) for more information.

Source bundles show up as regular debug files on the _Debug Files_ settings
page. They are designated as "source bundle" and feature a `sources` tag. To
match them with crash reports, they carry the same debug file as the respective
debug information file they have been created from.
---
title: Source Context
sidebar_order: 5
description: "Learn about setting up source bundles to show source code in stack traces on the Issue Details page."
---

If Sentry has access to application source code, it can show snippets of code
around the location of stack frames. Certain SDKs can resolve this source
context automatically, such as the Python SDK, because they have access to
unobfuscated source code at runtime.

To get source context for native applications, source code needs to be uploaded
alongside the debug information files. The recommended way to do this is by
using `sentry-cli`. See [Creating Source Bundles](/product/cli/dif/#creating-source-bundles) for more information.

Source bundles show up as regular debug files on the _Debug Files_ settings
page. They are designated as "source bundle" and feature a `sources` tag. To
match them with crash reports, they carry the same debug file as the respective
debug information file they have been created from.

<PlatformSection supported={["dotnet"]}>

Alternatively, you can build your project with `<EmbedAllSources>true</EmbedAllSources>` project property to produce
a Portable PDB with embedded source code. You can upload these PDB files using `sentry-cli` as usual.

</PlatformSection>

0 comments on commit 53d7095

Please sign in to comment.