diff --git a/docs/platforms/java/common/source-context/img/java-code-mappings-stacktrace.png b/docs/platforms/java/common/source-context/img/java-code-mappings-stacktrace.png index f20004b00ec3a..ca129604f398b 100644 Binary files a/docs/platforms/java/common/source-context/img/java-code-mappings-stacktrace.png and b/docs/platforms/java/common/source-context/img/java-code-mappings-stacktrace.png differ diff --git a/docs/platforms/java/common/source-context/index.mdx b/docs/platforms/java/common/source-context/index.mdx index b7a06bb36decd..512741add4860 100644 --- a/docs/platforms/java/common/source-context/index.mdx +++ b/docs/platforms/java/common/source-context/index.mdx @@ -14,9 +14,9 @@ To use suspect commits and stack trace linking, you'll need to set up a code map Use the following steps to determine the correct **Stack Trace Root** **Source Code Root** while setting up your code mapping: -First, navigate to a stack trace that you wish to map. Find an **In App** frame, which is denoted by a bubble on the right side of the frame. The Java module will be shown as the first piece of text at the left hand side of the frame header (marked as **1** in the below screenshot). In this example, it is `com.example.vu.android.MainActivity`. Hovering over the module will show the absolute path to the file (marked as **2** in the below screenshot). In this example, it is `MainActivity.java`. +First, navigate to a stack trace that you wish to map. Find an **In App** frame, which is denoted by a bubble on the right side of the frame. The Java module will be shown as the first piece of text on the left-hand side of the frame header. Hovering over the module will display the file's absolute path. In the screenshot below, the model is `com.example.vu.android.MainActivity` and the absolute file path is `MainActivity.java`. -![Highlighting where in the stack trace to find the module and absolute path](./img/java-code-mappings-stacktrace.png) +![A screenshot showing where in the stack trace you can find the Java module and absolute path](./img/java-code-mappings-stacktrace.png) Next, calculate the derived file path. Take the frame `module` and replace all `.` characters with `/`. Then, replace the last item (`MainActivity` in this example) with the absolute path found earlier (`MainActivity.java`). In this example, the derived file path is `com/example/vu/android/MainActivity.java`.